public class WOWZError
extends java.lang.Object
Constructor and Description |
---|
WOWZError(java.lang.Exception exception)
Constructs an error by an exception.
|
WOWZError(java.lang.String errorDescription)
Creates and initializes an instance using the specified property values.
|
WOWZError(java.lang.String errorDescription,
boolean warning)
Constructs an error by providing the description and a warning indicator.
|
WOWZError(java.lang.String errorDescription,
java.lang.Exception exception)
Constructs an error by providing the description and an exception.
|
WOWZError(java.lang.String errorClass,
int errorCode)
Constructs an error by providing the error class and code.
|
WOWZError(java.lang.String errorClass,
int errorCode,
boolean warning)
Constructs an error by providing the error class and code and a warning indicator.
|
WOWZError(java.lang.String errorClass,
int errorCode,
java.lang.Exception exception)
Constructs an error by providing the error class and code and an exception.
|
WOWZError(java.lang.String errorClass,
int errorCode,
java.lang.Exception exception,
boolean warning)
Constructs an error by providing the error class, code, an exception, and a warning indicator.
|
WOWZError(WOWZError other)
Creates and initializes an instance using the property values from the specified instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorClass()
Gets an identifier for the error class that is unique among all components of the SDK.
|
int |
getErrorCode()
Gets an identifier for the error that is unique within the corresponding error class.
|
java.lang.String |
getErrorDescription()
Gets a detailed description of the error.
|
java.lang.Exception |
getException()
Gets the exception associated with this error, if any.
|
boolean |
isWarning()
Indicates whether the error can be considered a warning.
|
static void |
registerErrors(java.lang.String errorClass) |
void |
set(WOWZError other)
Updates the property values of this instance with the property values from the specified instance.
|
void |
setErrorDescription(java.lang.String errorDescription)
Provides a custom error message.
|
java.lang.String |
toString()
Gets a human-readable description of this instance.
|
public WOWZError(java.lang.String errorClass, int errorCode, java.lang.Exception exception, boolean warning)
errorClass
- An identifier for the error class that is unique among all components of the SDK.errorCode
- An identifier for the error that is unique within the corresponding error class.exception
- An exception to associate with this error.warning
- Indicates whether the error can be considered a warning.public WOWZError(java.lang.String errorClass, int errorCode, boolean warning)
errorClass
- An identifier for the error class that is unique among all components of the SDK.errorCode
- An identifier for the error that is unique within the corresponding error class.warning
- Indicates whether the error can be considered a warning.public WOWZError(java.lang.String errorClass, int errorCode)
errorClass
- An identifier for the error class that is unique among all components of the SDK.errorCode
- An identifier for the error that is unique within the corresponding error class.public WOWZError(java.lang.String errorClass, int errorCode, java.lang.Exception exception)
errorClass
- An identifier for the error class that is unique among all components of the SDK.errorCode
- An identifier for the error that is unique within the corresponding error class.exception
- An exception to associate with this error.public WOWZError(java.lang.String errorDescription, boolean warning)
errorDescription
- The error message.warning
- Indicates if the error can be considered a warning.public WOWZError(java.lang.String errorDescription, java.lang.Exception exception)
errorDescription
- The error message.exception
- An exception to associate with this error.public WOWZError(java.lang.Exception exception)
exception
- An exception to associate with this error.public WOWZError(java.lang.String errorDescription)
errorDescription
- The error message.public WOWZError(WOWZError other)
other
- The instance to use.public void set(WOWZError other)
other
- The instance with the property values to use.public void setErrorDescription(java.lang.String errorDescription)
errorDescription
- An error description to override any normally loaded from resources for the associated error code.public java.lang.String toString()
toString
in class java.lang.Object
public boolean isWarning()
public java.lang.String getErrorClass()
public int getErrorCode()
public java.lang.String getErrorDescription()
public java.lang.Exception getException()
public static void registerErrors(java.lang.String errorClass)
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal