Class Error

java.lang.Object
com.ooyala.pulse.Error

public class Error extends Object
Wraps information on errors when they occur.
  • Constructor Details

    • Error

      public Error(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(String domain, int code, String message)
      Instantiate an Error object.
      Parameters:
      domain - The error's domain.
      code - The error's code.
      message - The error's message.
  • Method Details

    • getDomain

      public String 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

      public String getMessage()
      Gets the error message for this error.
      Returns:
      A textual description of the error that occurred.
    • toString

      public String toString()
      Overrides:
      toString in class Object