-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcb874e
commit b24d3da
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/com/github/felipeucelli/javatube/exceptions/BotDetectionError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.github.felipeucelli.javatube.exceptions; | ||
|
||
public class BotDetectionError extends Exception { | ||
public BotDetectionError(String videoId) { | ||
super(videoId + " This request was detected as a bot. Use `usePoToken=True` to view"); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/github/felipeucelli/javatube/exceptions/UnknownVideoError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.github.felipeucelli.javatube.exceptions; | ||
|
||
public class UnknownVideoError extends Exception{ | ||
public UnknownVideoError(String videoId, String status, String reason){ | ||
super("Unknown Video Error, VideoId: " + videoId + " Status: " + status + " Reason: " + reason); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/github/felipeucelli/javatube/exceptions/VideoRegionBlockedError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.github.felipeucelli.javatube.exceptions; | ||
|
||
public class VideoRegionBlockedError extends Exception { | ||
public VideoRegionBlockedError(String videoId) { | ||
super(videoId + " is not available in your region"); | ||
} | ||
} |