Make TransformationException constructor private.
Only allowing TransformationExceptions to be created using the factory methods helps keeping error messages consistent. This is consistent with ExoPlaybackException. PiperOrigin-RevId: 419841025
This commit is contained in:
parent
f06c79e441
commit
cdbcf9f6f2
@ -313,7 +313,7 @@ public final class TransformationException extends Exception {
|
|||||||
* @param errorCode A number which identifies the cause of the error. May be one of the {@link
|
* @param errorCode A number which identifies the cause of the error. May be one of the {@link
|
||||||
* ErrorCode ErrorCodes}.
|
* ErrorCode ErrorCodes}.
|
||||||
*/
|
*/
|
||||||
public TransformationException(
|
private TransformationException(
|
||||||
@Nullable String message, @Nullable Throwable cause, @ErrorCode int errorCode) {
|
@Nullable String message, @Nullable Throwable cause, @ErrorCode int errorCode) {
|
||||||
super(message, cause);
|
super(message, cause);
|
||||||
this.errorCode = errorCode;
|
this.errorCode = errorCode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user