Venice 0.751beta

nz.org.venice.quote
Class QuoteFormatException

java.lang.Object
  extended byjava.lang.Throwable
      extended bynz.org.venice.quote.QuoteFormatException
All Implemented Interfaces:
java.io.Serializable

public class QuoteFormatException
extends java.lang.Throwable

An exception which is raised when there is a problem parsing or verifying a quote.

Author:
Andrew Leppard
See Also:
Serialized Form

Constructor Summary
QuoteFormatException(java.util.List messages)
          Create a new quote format exception.
QuoteFormatException(java.lang.String message)
          Create a new quote format exception.
 
Method Summary
 java.lang.String getMessage()
          Return the first reason the quote was invalid.
 java.util.List getMessages()
          Return the reasons the quote was invalid.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

QuoteFormatException

public QuoteFormatException(java.lang.String message)
Create a new quote format exception.

Parameters:
message - the reason the quote was invalid

QuoteFormatException

public QuoteFormatException(java.util.List messages)
Create a new quote format exception.

Parameters:
messages - a list of reasons the quote was invalid
Method Detail

getMessages

public java.util.List getMessages()
Return the reasons the quote was invalid.

Returns:
reasons

getMessage

public java.lang.String getMessage()
Return the first reason the quote was invalid.

Returns:
first reason

Venice 0.751beta