Package com.ooyala.pulse
Class Error
java.lang.Object
com.ooyala.pulse.Error
Wraps information on errors when they occur.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Core error codes.static class
The possible error domains.static class
Omid error codes.static class
Request error codes. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
Error
Instantiate an Error object with the USER domain. Its code will be 0 and the provided message will be used.- Parameters:
message
- The error message to use.
-
Error
Instantiate an Error object.- Parameters:
domain
- The error's domain.code
- The error's code.message
- The error's message.
-
-
Method Details
-
getDomain
Gets the domain of this error.- Returns:
- The domain of this error.
- See Also:
-
getCode
public int getCode()Gets the error code of this error.- Returns:
- The error code of this error.
- See Also:
-
getMessage
Gets the error message for this error.- Returns:
- A textual description of the error that occurred.
-
toString
-