org.jboss.weld.exceptions
Class InvalidOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.UnsupportedOperationException
                  extended by org.jboss.weld.exceptions.InvalidOperationException
All Implemented Interfaces:
java.io.Serializable

public class InvalidOperationException
extends java.lang.UnsupportedOperationException

An exception used for unsupported operations or invocations of operations that are invalid in certain contexts.

Author:
David Allen
See Also:
Serialized Form

Constructor Summary
InvalidOperationException()
          Creates a new exception with no message.
InvalidOperationException(E key, java.lang.Object... args)
          Creates a new exception with the given localized message key and optional arguments for the message.
 
Method Summary
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

InvalidOperationException

public InvalidOperationException()
Creates a new exception with no message. Here the stacktrace serves as the main information since it has the method which was invoked causing this exception.


InvalidOperationException

public InvalidOperationException(E key,
                                 java.lang.Object... args)
Creates a new exception with the given localized message key and optional arguments for the message.

Type Parameters:
E - The enumeration type for the message keys
Parameters:
key - The localized message to use
args - Optional arguments to insert into the message
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2008-2010 Seam Framework. All Rights Reserved.