| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.UnsupportedOperationException
org.apache.commons.lang.NotImplementedException
Thrown to indicate that a block of code has not been implemented.
 This exception supplements UnsupportedOperationException
 by providing a more semantically rich description of the problem.
NotImplementedException represents the case where the
 author has yet to implement the logic at this point in the program.
 This can act as an exception based TODO tag.
 Because this logic might be within a catch block, this exception
 suports exception chaining.
 public void foo() {
   try {
     // do something that throws an Exception
   } catch (Exception ex) {
     // don't know what to do here yet
     throw new NotImplementedException("TODO", ex);
   }
 }
 
| Constructor Summary | |
NotImplementedException()
Constructs a new NotImplementedException with default message. | 
|
NotImplementedException(Class clazz)
Constructs a new NotImplementedException referencing the specified class. | 
|
NotImplementedException(String msg)
Constructs a new NotImplementedException with specified
 detail message. | 
|
NotImplementedException(String msg,
                        Throwable cause)
Constructs a new NotImplementedException with specified
 detail message and nested Throwable. | 
|
NotImplementedException(Throwable cause)
Constructs a new NotImplementedException with specified
 nested Throwable and default message. | 
|
| Method Summary | |
 Throwable | 
getCause()
Gets the root cause of this exception.  | 
 String | 
getMessage()
Gets the combined the error message of this and any nested errors.  | 
 String | 
getMessage(int index)
Returns the error message of the Throwable in the chain
 of Throwables at the specified index, numbered from 0. | 
 String[] | 
getMessages()
Returns the error message of this and any nested Throwable objects. | 
 Throwable | 
getThrowable(int index)
Returns the Throwable in the chain by index. | 
 int | 
getThrowableCount()
Returns the number of nested Throwables represented by
 this Nestable, including this Nestable. | 
 Throwable[] | 
getThrowables()
Returns this Nestable and any nested Throwables
 in an array of Throwables, one element for each
 Throwable. | 
 int | 
indexOfThrowable(Class type)
Returns the index of the first occurrence of the specified type.  | 
 int | 
indexOfThrowable(Class type,
                 int fromIndex)
Returns the index of the first occurrence of the specified type starting from the specified index.  | 
 void | 
printPartialStackTrace(PrintWriter out)
Prints the stack trace for this exception only (root cause not included) using the specified writer.  | 
 void | 
printStackTrace()
Prints the stack trace of this exception.  | 
 void | 
printStackTrace(PrintStream out)
Prints the stack trace of this exception to the specified stream.  | 
 void | 
printStackTrace(PrintWriter out)
Prints the stack trace of this exception to the specified writer.  | 
| Methods inherited from class java.lang.Throwable | 
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public NotImplementedException()
NotImplementedException with default message.
public NotImplementedException(String msg)
NotImplementedException with specified
 detail message.
msg - the error message.public NotImplementedException(Throwable cause)
NotImplementedException with specified
 nested Throwable and default message.
cause - the exception that caused this exception to be thrown
public NotImplementedException(String msg,
                               Throwable cause)
NotImplementedException with specified
 detail message and nested Throwable.
msg - the error messagecause - the exception that caused this exception to be thrownpublic NotImplementedException(Class clazz)
NotImplementedException referencing the specified class.
clazz - the Class that has not implemented the method| Method Detail | 
public Throwable getCause()
getCause in interface Nestablepublic String getMessage()
getMessage in interface Nestablepublic String getMessage(int index)
Throwable in the chain
 of Throwables at the specified index, numbered from 0.
getMessage in interface Nestableindex - the index of the Throwable in the chain
Throwable at the
  specified index in the chain does not contain a message
IndexOutOfBoundsException - if the index argument is
  negative or not less than the count of Throwables in the chainpublic String[] getMessages()
Throwable objects.
 Each throwable returns a message, a null string is included in the array if
 there is no message for a particular Throwable.
getMessages in interface Nestablepublic Throwable getThrowable(int index)
Throwable in the chain by index.
getThrowable in interface Nestableindex - the index to retrieve
Throwable
IndexOutOfBoundsException - if the index argument is
  negative or not less than the count of Throwables in the chainpublic int getThrowableCount()
Throwables represented by
 this Nestable, including this Nestable.
getThrowableCount in interface Nestablepublic Throwable[] getThrowables()
Nestable and any nested Throwables
 in an array of Throwables, one element for each
 Throwable.
getThrowables in interface NestableThrowablespublic int indexOfThrowable(Class type)
-1 is returned.
indexOfThrowable in interface Nestabletype - the type to search for
public int indexOfThrowable(Class type,
                            int fromIndex)
-1 is returned.
indexOfThrowable in interface Nestabletype - the type to search forfromIndex - the index of the starting position in the chain to be searched
IndexOutOfBoundsException - if the fromIndex argument
  is negative or not less than the count of Throwables in the chainpublic void printStackTrace()
public void printStackTrace(PrintStream out)
printStackTrace in interface Nestableout - the stream to write topublic void printStackTrace(PrintWriter out)
printStackTrace in interface Nestableout - the writer to write topublic final void printPartialStackTrace(PrintWriter out)
printPartialStackTrace in interface Nestableout - the writer to write to
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||