PenProfile 2.x

com.livescribe.penlet
Class PenletStateChangeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.livescribe.penlet.PenletStateChangeException

public class PenletStateChangeException
extends Exception

Signals that a requested penlet or plugin state change failed.

See Also:
Penlet.activateApp(int, Object[]), PenletPlugin.activate()

Constructor Summary
PenletStateChangeException()
          Construct PenletStateChangeException with no message
PenletStateChangeException(String msg)
          Construct PenletStateChangeException with a message.
PenletStateChangeException(String msg, Throwable cause)
          Creates a new penlet state change exception with the specified cause.
PenletStateChangeException(Throwable cause)
          Creates a new penlet state change exception with the specified cause.
 
Method Summary
 Throwable getCause()
          Gets the cause for this exception.
 String getMessage()
          Overridden to supply a message from the cause exception if there is no detail message.
 
Methods inherited from class java.lang.Throwable
printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PenletStateChangeException

public PenletStateChangeException()
Construct PenletStateChangeException with no message


PenletStateChangeException

public PenletStateChangeException(String msg)
Construct PenletStateChangeException with a message.

Parameters:
msg - message

PenletStateChangeException

public PenletStateChangeException(String msg,
                                  Throwable cause)
Creates a new penlet state change exception with the specified cause.

Parameters:
msg - the detail message
cause - the cause, may be null
Since:
2.4

PenletStateChangeException

public PenletStateChangeException(Throwable cause)
Creates a new penlet state change exception with the specified cause.

Parameters:
cause - the cause, may be null
Since:
2.4
Method Detail

getMessage

public String getMessage()
Overridden to supply a message from the cause exception if there is no detail message.

Overrides:
getMessage in class Throwable
Returns:
the error message.

getCause

public Throwable getCause()
Gets the cause for this exception. This may return null if one was not set.

Returns:
the exception cause, or null if it is not set.
Since:
2.4

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.