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 booleanequals(java.lang.Object o)java.lang.StringgetCatalogErrorCode()Gets the Catalog Error codejava.lang.StringgetCatalogErrorSubcode()Gets the Catalog Error subcodeBrightcoveError.ErrorCodegetErrorCode()Gets theBrightcoveErrorcode.java.lang.StringgetMessage()Gets the Catalog Error messagejava.lang.ThrowablegetThrowable()Gets the Throwable error thrown when making the Playback API request, if any.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getErrorCode
@NonNull public BrightcoveError.ErrorCode getErrorCode()
Gets theBrightcoveErrorcode. Currently always returnsBrightcoveError.ErrorCode.CATALOG_ERROR- Specified by:
getErrorCodein interfaceBrightcoveError- Returns:
BrightcoveError.ErrorCode.CATALOG_ERROR
-
getMessage
@NonNull public java.lang.String getMessage()
Gets the Catalog Error message- Specified by:
getMessagein 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:
getThrowablein 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-