public class WZError extends Object
Constructor and Description |
---|
WZError(Exception exception)
Construct an error by an exception
|
WZError(String errorDescription)
Construct a new instance using the specified property values
|
WZError(String errorDescription,
boolean warning)
Construct an error by providing the description and a warning indicator
|
WZError(String errorDescription,
Exception exception)
Construct an error by providing the description and an exception
|
WZError(String errorClass,
int errorCode)
Construct an error by providing the error class and code
|
WZError(String errorClass,
int errorCode,
boolean warning)
Construct an error by providing the error class and code and a warning indicator
|
WZError(String errorClass,
int errorCode,
Exception exception)
Construct an error by providing the error class and code and an exception
|
WZError(String errorClass,
int errorCode,
Exception exception,
boolean warning)
Construct an error by providing the error class, code, an exception, and a warning indicator
|
WZError(WZError other)
Construct a new instance using the property values from the specified instance
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorClass()
Returns an identifier for the error class that is unique among all components of the SDK
|
int |
getErrorCode()
Returns an identifier for the error that is unique within the corresponding error class
|
String |
getErrorDescription()
Returns a detailed description of the error
|
Exception |
getException()
Returns the exception associated with this error, if any
|
boolean |
isWarning()
Indicates if the error can be considered just a warning
|
static void |
registerErrors(String errorClass) |
void |
set(WZError other)
Update the property values of this instance with the property values from the specified instance
|
void |
setErrorDescription(String errorDescription)
Provide a custom error message
|
String |
toString()
Returns a human-readable description of this instance
|
public WZError(String errorClass, int errorCode, Exception exception, boolean warning)
errorClass
- an identifier for the error class that is unique among all components of the SDKerrorCode
- an identifier for the error that is unique within the corresponding error classexception
- An exception to associate with this errorwarning
- indicates if the error can be considered just a warningpublic WZError(String errorClass, int errorCode, boolean warning)
errorClass
- an identifier for the error class that is unique among all components of the SDKerrorCode
- an identifier for the error that is unique within the corresponding error classwarning
- indicates if the error can be considered just a warningpublic WZError(String errorClass, int errorCode)
errorClass
- an identifier for the error class that is unique among all components of the SDKerrorCode
- an identifier for the error that is unique within the corresponding error classpublic WZError(String errorClass, int errorCode, Exception exception)
errorClass
- an identifier for the error class that is unique among all components of the SDKerrorCode
- an identifier for the error that is unique within the corresponding error classexception
- An exception to associate with this errorpublic WZError(String errorDescription, boolean warning)
errorDescription
- The error messagewarning
- Indicates if the error can be considered just a warningpublic WZError(String errorDescription, Exception exception)
errorDescription
- The error messageexception
- An exception to associate with this errorpublic WZError(Exception exception)
exception
- An exception to associate with this errorpublic WZError(String errorDescription)
errorDescription
- The error messagepublic WZError(WZError other)
other
- The instance to replicatepublic void set(WZError other)
other
- The instance with the property values to replicatepublic void setErrorDescription(String errorDescription)
errorDescription
- An error description to override any normally loaded from resources for the associated error codepublic String toString()
public boolean isWarning()
true
if the error can be considered just a warning, false
otherwisepublic String getErrorClass()
public int getErrorCode()
public String getErrorDescription()
public Exception getException()
public static void registerErrors(String errorClass)
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal