org.apache.commons.lang
Class IllegalClassException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
                  extended byorg.apache.commons.lang.IllegalClassException
All Implemented Interfaces:
Serializable

public class IllegalClassException
extends 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(Class expected, Class actual)
          Instantiates with the specified types (classes or interfaces).
IllegalClassException(String message)
          Instantiates with the specified message.
 
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(Class expected,
                             Class actual)

Instantiates with the specified types (classes or interfaces).

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

IllegalClassException

public IllegalClassException(String message)

Instantiates with the specified message.

Parameters:
message - the exception message


Copyright © 2001-2003 - Apache Software Foundation