Package com.brightcove.player.edge
Class CatalogError
- java.lang.Object
-
- com.brightcove.player.edge.CatalogError
-
- All Implemented Interfaces:
BrightcoveError
public final class CatalogError extends java.lang.Object implements BrightcoveError
A Brightcove Error created when making a Playback API request using theCatalog
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.brightcove.player.model.BrightcoveError
BrightcoveError.ErrorCode
-
-
Field Summary
-
Fields inherited from interface com.brightcove.player.model.BrightcoveError
ERROR_CODE, ERROR_SUBCODE, MESSAGE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getCatalogErrorCode()
Gets the Catalog Error codejava.lang.String
getCatalogErrorSubcode()
Gets the Catalog Error subcodeBrightcoveError.ErrorCode
getErrorCode()
Gets theBrightcoveError
code.java.lang.String
getMessage()
Gets the Catalog Error messagejava.lang.Throwable
getThrowable()
Gets the Throwable error thrown when making the Playback API request, if any.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getErrorCode
@NonNull public BrightcoveError.ErrorCode getErrorCode()
Gets theBrightcoveError
code. Currently always returnsBrightcoveError.ErrorCode.CATALOG_ERROR
- Specified by:
getErrorCode
in interfaceBrightcoveError
- Returns:
BrightcoveError.ErrorCode.CATALOG_ERROR
-
getMessage
@NonNull public java.lang.String getMessage()
Gets the Catalog Error message- Specified by:
getMessage
in interfaceBrightcoveError
- Returns:
- the error message
-
getThrowable
@Nullable public java.lang.Throwable getThrowable()
Gets the Throwable error thrown when making the Playback API request, if any.- Specified by:
getThrowable
in interfaceBrightcoveError
- Returns:
- the throwable error
-
getCatalogErrorCode
@NonNull public java.lang.String getCatalogErrorCode()
Gets the Catalog Error code- Returns:
- the error code returned from the Playback API server
-
getCatalogErrorSubcode
@NonNull public java.lang.String getCatalogErrorSubcode()
Gets the Catalog Error subcode- Returns:
- the error subcode returned from the Playback API server
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-