org.jasig.cas.ticket
Class TicketException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jasig.cas.ticket.TicketException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- InvalidTicketException, TicketCreationException, TicketValidationException
public abstract class TicketException
- extends 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(String code)
Constructs a new TicketException with the code identifying the exception
type. |
TicketException(String code,
Throwable throwable)
Constructs a new TicketException with the code identifying the exception
and the original Throwable. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TicketException
public TicketException(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(String code,
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.
getCode
public final 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-2013 Jasig. All Rights Reserved.