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.
| Modifier and Type | Field and Description |
|---|---|
| private final String | code
A resource for more information regarding the lack of implementation. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NotImplementedException(final String
description of the exception message)Constructs a NotImplementedException. |
| public | NotImplementedException(final String
description of the exception message, final String code indicating a resource for more information regarding the lack of implementation code)Constructs a NotImplementedException. |
| public | NotImplementedException(final String
description of the exception message, final Throwable cause of the exception cause)Constructs a NotImplementedException. |
| public | NotImplementedException(final String
description of the exception message, final Throwable cause of the exception cause, final String code indicating a resource for more information regarding the lack of implementation code)Constructs a NotImplementedException. |
| public | NotImplementedException(final Throwable
cause of the exception cause)Constructs a NotImplementedException. |
| public | NotImplementedException(final Throwable
cause of the exception cause, final String code indicating a resource for more information regarding the lack of implementation code)Constructs a NotImplementedException. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a code indicating a resource for more information regarding the lack of implementationObtain the not implemented code. |
| code | back to summary |
|---|---|
| private final String code A resource for more information regarding the lack of implementation. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| NotImplementedException | back to summary |
|---|---|
| public NotImplementedException() Constructs a NotImplementedException.
| |
| NotImplementedException | back to summary |
|---|---|
| public NotImplementedException(final String message) Constructs a NotImplementedException.
| |
| NotImplementedException | back to summary |
|---|---|
| public NotImplementedException(final String message, final String code) Constructs a NotImplementedException. | |
| NotImplementedException | back to summary |
|---|---|
| public NotImplementedException(final String message, final Throwable cause) Constructs a NotImplementedException. | |
| NotImplementedException | back to summary |
|---|---|
| public NotImplementedException(final String message, final Throwable cause, final String code) Constructs a NotImplementedException. | |
| NotImplementedException | back to summary |
|---|---|
| public NotImplementedException(final Throwable cause) Constructs a NotImplementedException.
| |
| NotImplementedException | back to summary |
|---|---|
| public NotImplementedException(final Throwable cause, final String code) Constructs a NotImplementedException. | |
| getCode | back to summary |
|---|---|
| public String getCode() Obtain the not implemented code. This is an unformatted piece of text intended to point to further information regarding the lack of implementation. It might, for example, be an issue tracker ID or a URL.
| |