public class NotImplementedException
extends java.lang.UnsupportedOperationException
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.
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); } }This class was originally added in Lang 2.0, but removed in 3.0.
Constructor and Description |
---|
NotImplementedException(java.lang.String message)
Constructs a NotImplementedException.
|
NotImplementedException(java.lang.String message,
java.lang.String code)
Constructs a NotImplementedException.
|
NotImplementedException(java.lang.String message,
java.lang.Throwable cause)
Constructs a NotImplementedException.
|
NotImplementedException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String code)
Constructs a NotImplementedException.
|
NotImplementedException(java.lang.Throwable cause)
Constructs a NotImplementedException.
|
NotImplementedException(java.lang.Throwable cause,
java.lang.String code)
Constructs a NotImplementedException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Obtain the not implemented code.
|
public NotImplementedException(java.lang.String message)
message
- description of the exceptionpublic NotImplementedException(java.lang.Throwable cause)
cause
- cause of the exceptionpublic NotImplementedException(java.lang.String message, java.lang.Throwable cause)
message
- description of the exceptioncause
- cause of the exceptionpublic NotImplementedException(java.lang.String message, java.lang.String code)
message
- description of the exceptioncode
- code indicating a resource for more information regarding the lack of implementationpublic NotImplementedException(java.lang.Throwable cause, java.lang.String code)
cause
- cause of the exceptioncode
- code indicating a resource for more information regarding the lack of implementationpublic NotImplementedException(java.lang.String message, java.lang.Throwable cause, java.lang.String code)
message
- description of the exceptioncause
- cause of the exceptioncode
- code indicating a resource for more information regarding the lack of implementationpublic java.lang.String getCode()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"