org.apache.commons.lang
Class IllegalClassException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.apache.commons.lang.IllegalClassException
All Implemented Interfaces:
java.io.Serializable

public class IllegalClassException
extends java.lang.IllegalArgumentException

Thrown when an object is an instance of an unexpected type (a class or interface).

Since:
2.0
Version:
$Id: IllegalClassException.java,v 1.5 2003/08/18 02:22:23 bayard Exp $
Author:
Matthew Hawthorne, Gary Gregory
See Also:
Serialized Form

Constructor Summary
IllegalClassException(java.lang.Class expected, java.lang.Class actual)
          Instantiates with the specified types (classes or interfaces).
IllegalClassException(java.lang.String message)
          Instantiates with the specified message.
 
Method Summary
 
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

IllegalClassException

public IllegalClassException(java.lang.Class expected,
                             java.lang.Class actual)

Instantiates with the specified types (classes or interfaces).

Parameters:
expected - the expected type
actual - the actual type

IllegalClassException

public IllegalClassException(java.lang.String message)

Instantiates with the specified message.

Parameters:
message - the exception message


Copyright © 2001-2003 - Apache Software Foundation