net.dpml.lang
Class TypeCastException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.ClassCastException
                  extended by net.dpml.lang.TypeCastException
All Implemented Interfaces:
Serializable

public class TypeCastException
extends ClassCastException

Exception raised when class cannot be cast to a requested type.

Version:
2.1.0
Author:
Digital Product Management Library
See Also:
Serialized Form

Constructor Summary
TypeCastException(String message, Class base, Class type)
          Construct a new TypeCastException instance.
 
Method Summary
 Class getBase()
          Get the base class.
 String getReport()
          Get the reported type cast error.
 Class getType()
          Get the type class.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

TypeCastException

public TypeCastException(String message,
                         Class base,
                         Class type)
Construct a new TypeCastException instance.

Parameters:
message - the message
base - the base class against which a failed cast was attempted
type - the class used as the cast criteria
Method Detail

getBase

public Class getBase()
Get the base class.

Returns:
the class

getType

public Class getType()
Get the type class.

Returns:
the type

getReport

public String getReport()
Get the reported type cast error.

Returns:
the reported error