Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.pubnub.api
Class PubnubException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              com.pubnub.api.PubnubException

All Implemented Interfaces:
  java.io.Serializable

    public class PubnubException

extends java.lang.Exception

PubnubException is thrown by various Pubnub APIs

Author:
  PubnubCore
See Also:
  Serialized Form

Constructor Summary
`PubnubException(PubnubError pubnubError)` Constructor for PubnubException Class with error message as argument
`PubnubException(PubnubError pubnubError, java.lang.String s)` Constructor for PubnubException Class with error message as argument
`PubnubException(java.lang.String s)` Constructor for PubnubException Class with error message as argument

Method Summary
`PubnubError` | `getPubnubError()`
`java.lang.String` | `toString()` Read the exception error message

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### PubnubException

    public PubnubException(java.lang.String s)

  Constructor for PubnubException Class with error message as argument

  Parameters:
    `s` - Error message

### PubnubException

    public PubnubException(PubnubError pubnubError)

  Constructor for PubnubException Class with error message as argument

  Parameters:
    `pubnubError` - Error message

### PubnubException

    public PubnubException(PubnubError pubnubError,
                           java.lang.String s)

  Constructor for PubnubException Class with error message as argument

  Parameters:
    `s` - Error message

Method Detail

### toString

    public java.lang.String toString()

  Read the exception error message

  Overrides:
    `toString` in class `java.lang.Throwable`
  Returns:
    String

### getPubnubError

    public PubnubError getPubnubError()

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD