nl.openedge.baritus.converters
Class ConversionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bynl.openedge.baritus.converters.ConversionException
All Implemented Interfaces:
java.io.Serializable

public final class ConversionException
extends java.lang.RuntimeException

Modified ConversionException that saves the desired pattern as an extra field

Author:
Eelco Hillenius
See Also:
Serialized Form

Constructor Summary
ConversionException(java.lang.String message)
          Construct exception with message.
ConversionException(java.lang.String message, java.lang.String desiredPattern)
          Construct exception with message and desired pattern.
ConversionException(java.lang.String message, java.lang.Throwable cause)
          Construct exception with message and cause.
ConversionException(java.lang.String message, java.lang.Throwable cause, java.lang.String desiredPattern)
          Construct exception with message, cause and desired pattern.
ConversionException(java.lang.Throwable cause)
          Construct exception with cause.
ConversionException(java.lang.Throwable cause, java.lang.String desiredPattern)
          Construct exception with cause and desired pattern.
 
Method Summary
 java.lang.String getDesiredPattern()
          Get the desired pattern.
 void setDesiredPattern(java.lang.String string)
          Set the desired pattern.
 java.lang.String toString()
          String representation of the exception.
 
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

ConversionException

public ConversionException(java.lang.String message)
Construct exception with message.

Parameters:
message - message

ConversionException

public ConversionException(java.lang.String message,
                           java.lang.String desiredPattern)
Construct exception with message and desired pattern.

Parameters:
message - message
desiredPattern - the desired pattern

ConversionException

public ConversionException(java.lang.String message,
                           java.lang.Throwable cause)
Construct exception with message and cause.

Parameters:
message - message
cause - cause

ConversionException

public ConversionException(java.lang.String message,
                           java.lang.Throwable cause,
                           java.lang.String desiredPattern)
Construct exception with message, cause and desired pattern.

Parameters:
message - message
cause - cause
desiredPattern - the desired pattern

ConversionException

public ConversionException(java.lang.Throwable cause)
Construct exception with cause.

Parameters:
cause - cause

ConversionException

public ConversionException(java.lang.Throwable cause,
                           java.lang.String desiredPattern)
Construct exception with cause and desired pattern.

Parameters:
cause - cause
desiredPattern - the desired pattern
Method Detail

getDesiredPattern

public java.lang.String getDesiredPattern()
Get the desired pattern.

Returns:
String optionally the desired pattern

setDesiredPattern

public void setDesiredPattern(java.lang.String string)
Set the desired pattern.

Parameters:
string - the desired pattern

toString

public java.lang.String toString()
String representation of the exception.

Returns:
String string representation


Copyright © 2003-2004 Open Edge. All Rights Reserved.