org.apache.commons.lang

Class IllegalClassException


public class IllegalClassException
extends IllegalArgumentException

Thrown when an object is an instance of an unexpected type (a class or interface).
Version:
$Id: IllegalClassException.java,v 1.5 2003/08/18 02:22:23 bayard Exp $
Authors:
Matthew Hawthorne
Gary Gregory
Since:
2.0

Constructor Summary

IllegalClassException(Class expected, Class actual)
Instantiates with the specified types (classes or interfaces).
IllegalClassException(String message)
Instantiates with the specified message.

Constructor Details

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