Venice 0.751beta

nz.org.venice.util
Class UnknownCurrencyCodeException

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

public class UnknownCurrencyCodeException
extends java.lang.Throwable

An exception which is raised when an unrecognised currency code is passed to the Currency class.

Author:
Andrew Leppard
See Also:
Currency, Serialized Form

Constructor Summary
UnknownCurrencyCodeException(java.lang.String reason)
          Create a new unknown currency code exception.
 
Method Summary
 java.lang.String getReason()
          Return the reason this exception was raised.
 java.lang.String toString()
          Convert the exception to a string
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownCurrencyCodeException

public UnknownCurrencyCodeException(java.lang.String reason)
Create a new unknown currency code exception.

Parameters:
reason - for the exception
Method Detail

getReason

public java.lang.String getReason()
Return the reason this exception was raised.

Returns:
the reason why the string isn't a valid currency code

toString

public java.lang.String toString()
Convert the exception to a string

Returns:
string version of the exception

Venice 0.751beta