Package com.ooyala.pulse
Class Error
- java.lang.Object
 - 
- com.ooyala.pulse.Error
 
 
- 
public class Error extends java.lang.ObjectWraps information on errors when they occur. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classError.CoreCore error codes.static classError.DomainThe possible error domains.static classError.OmidOmid error codes.static classError.RequestRequest error codes. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Gets the error code of this error.java.lang.StringgetDomain()Gets the domain of this error.java.lang.StringgetMessage()Gets the error message for this error.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
Error
public Error(java.lang.String message)
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
public Error(java.lang.String domain, int code, java.lang.String message)Instantiate an Error object.- Parameters:
 domain- The error's domain.code- The error's code.message- The error's message.
 
 - 
 
- 
Method Detail
- 
getDomain
public java.lang.String getDomain()
Gets the domain of this error.- Returns:
 - The domain of this error.
 - See Also:
 Error.Domain
 
- 
getCode
public int getCode()
Gets the error code of this error.- Returns:
 - The error code of this error.
 - See Also:
 Error.Core,Error.Request
 
- 
getMessage
public java.lang.String getMessage()
Gets the error message for this error.- Returns:
 - A textual description of the error that occurred.
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -