org.jasig.cas.ticket
Class TicketException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jasig.cas.ticket.TicketException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidTicketException, TicketCreationException, TicketValidationException

public abstract class TicketException
extends java.lang.Exception

Generic ticket exception. Top of the TicketException heirarchy.

Since:
3.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia
See Also:
Serialized Form

Constructor Summary
TicketException(java.lang.String code)
          Constructs a new TicketException with the code identifying the exception type.
TicketException(java.lang.String code, java.lang.Throwable throwable)
          Constructs a new TicketException with the code identifying the exception and the original Throwable.
 
Method Summary
 java.lang.String getCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TicketException

public TicketException(java.lang.String code)
Constructs a new TicketException with the code identifying the exception type.

Parameters:
code - the code to describe what type of exception this is.

TicketException

public TicketException(java.lang.String code,
                       java.lang.Throwable throwable)
Constructs a new TicketException with the code identifying the exception and the original Throwable.

Parameters:
code - the code to describe what type of exception this is.
throwable - the original exception we are chaining.
Method Detail

getCode

public final java.lang.String getCode()
Returns:
Returns the code. If there is a chained exception it returns the toString-ed version of the chained exception rather than the code.


Copyright © 2004-2005 Java Architectures Special Interest Group. All Rights Reserved.