mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Reorder DataSourceException constructors and accept nullable parameters
This CL doesn't introduce functional changes. PiperOrigin-RevId: 387613057
This commit is contained in:
parent
337d5aa9b6
commit
e65bcefad1
1 changed files with 18 additions and 16 deletions
|
|
@ -70,25 +70,11 @@ public class DataSourceException extends IOException {
|
||||||
/**
|
/**
|
||||||
* Constructs a DataSourceException.
|
* Constructs a DataSourceException.
|
||||||
*
|
*
|
||||||
* @param message The error message.
|
|
||||||
* @param cause The error cause.
|
* @param cause The error cause.
|
||||||
* @param reason Reason of the error, should be one of the {@code ERROR_CODE_IO_*} in {@link
|
* @param reason Reason of the error, should be one of the {@code ERROR_CODE_IO_*} in {@link
|
||||||
* PlaybackException.ErrorCode}.
|
* PlaybackException.ErrorCode}.
|
||||||
*/
|
*/
|
||||||
public DataSourceException(
|
public DataSourceException(@Nullable Throwable cause, @PlaybackException.ErrorCode int reason) {
|
||||||
String message, @Nullable Throwable cause, @PlaybackException.ErrorCode int reason) {
|
|
||||||
super(message, cause);
|
|
||||||
this.reason = reason;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a DataSourceException.
|
|
||||||
*
|
|
||||||
* @param cause The error cause.
|
|
||||||
* @param reason Reason of the error, should be one of the {@code ERROR_CODE_IO_*} in {@link
|
|
||||||
* PlaybackException.ErrorCode}.
|
|
||||||
*/
|
|
||||||
public DataSourceException(Throwable cause, @PlaybackException.ErrorCode int reason) {
|
|
||||||
super(cause);
|
super(cause);
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
|
@ -100,8 +86,24 @@ public class DataSourceException extends IOException {
|
||||||
* @param reason Reason of the error, should be one of the {@code ERROR_CODE_IO_*} in {@link
|
* @param reason Reason of the error, should be one of the {@code ERROR_CODE_IO_*} in {@link
|
||||||
* PlaybackException.ErrorCode}.
|
* PlaybackException.ErrorCode}.
|
||||||
*/
|
*/
|
||||||
public DataSourceException(String message, @PlaybackException.ErrorCode int reason) {
|
public DataSourceException(@Nullable String message, @PlaybackException.ErrorCode int reason) {
|
||||||
super(message);
|
super(message);
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a DataSourceException.
|
||||||
|
*
|
||||||
|
* @param message The error message.
|
||||||
|
* @param cause The error cause.
|
||||||
|
* @param reason Reason of the error, should be one of the {@code ERROR_CODE_IO_*} in {@link
|
||||||
|
* PlaybackException.ErrorCode}.
|
||||||
|
*/
|
||||||
|
public DataSourceException(
|
||||||
|
@Nullable String message,
|
||||||
|
@Nullable Throwable cause,
|
||||||
|
@PlaybackException.ErrorCode int reason) {
|
||||||
|
super(message, cause);
|
||||||
|
this.reason = reason;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue