de.bsvrz.kex.bwsin.konfig.okstra
Class IllegalAttributeConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.bsvrz.kex.bwsin.konfig.okstra.IllegalAttributeConversionException
All Implemented Interfaces:
Serializable

public class IllegalAttributeConversionException
extends Exception

Exception für Ausnahmen bei der Konvertierung von Feature-Attributen.

Version:
$Id: IllegalAttributeConversionException.java 10401 2008-07-10 09:06:04Z gieseler $
Author:
BitCtrl Systems GmbH, Gieseler
See Also:
Serialized Form

Field Summary
private  Class expected
          The expected type.
private  Object invalid
          The object that does not match the expected type.
private static long serialVersionUID
          serialVersionUID.
 
Constructor Summary
IllegalAttributeConversionException(Class<?> expected, Object invalid)
          Constructor that makes the message given the expected and invalid.
IllegalAttributeConversionException(Class<?> expected, Object invalid, Throwable cause)
          Constructor that makes the message given the expected and invalid, along with the root cause.
IllegalAttributeConversionException(String message)
          Constructor with message argument.
 
Method Summary
(package private) static String errorMessage(Class<?> expected, Object invalid)
          Constructs an error message based on expected and invalid.
 String toString()
          
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
serialVersionUID.

See Also:
Constant Field Values

expected

private final Class expected
The expected type.


invalid

private final Object invalid
The object that does not match the expected type.

Constructor Detail

IllegalAttributeConversionException

public IllegalAttributeConversionException(Class<?> expected,
                                           Object invalid)
Constructor that makes the message given the expected and invalid.

Parameters:
expected - the expected AttributeType.
invalid - the attribute that does not validate against expected.

IllegalAttributeConversionException

public IllegalAttributeConversionException(Class<?> expected,
                                           Object invalid,
                                           Throwable cause)
Constructor that makes the message given the expected and invalid, along with the root cause.

Parameters:
expected - the expected AttributeType.
invalid - the attribute that does not validate against expected.
cause - the root cause of the error.

IllegalAttributeConversionException

public IllegalAttributeConversionException(String message)
Constructor with message argument.

Parameters:
message - Reason for the exception being thrown
Method Detail

errorMessage

static String errorMessage(Class<?> expected,
                           Object invalid)
Constructs an error message based on expected and invalid.

Parameters:
expected - the expected AttributeType.
invalid - the attribute that does not validate against expected.
Returns:
an error message reporting the problem.

toString

public String toString()

Overrides:
toString in class Throwable
See Also:
Throwable.toString()