public class InvalidTicketException extends AbstractTicketException
Constructor and Description |
---|
InvalidTicketException(java.lang.String ticketId)
Constructs a InvalidTicketException with the default exception code.
|
InvalidTicketException(java.lang.Throwable throwable,
java.lang.String ticketId)
Constructs a InvalidTicketException with the default exception code and
the original exception that was thrown.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the ticket id that causes this exception.
|
getCode, toString
public InvalidTicketException(java.lang.String ticketId)
ticketId
- the ticket id that originally caused this exception to be thrown.public InvalidTicketException(java.lang.Throwable throwable, java.lang.String ticketId)
throwable
- the chained exceptionticketId
- the ticket id that originally caused this exception to be thrown.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
ticketId