public class ReverseFailedException
extends java.lang.Exception
ICodeReverser.reverseCode(MObject)
. The exception can refers the element where the reverse failed. It can
be the class whose file reverse failed or a more precise element.Modifier and Type | Field and Description |
---|---|
protected MObject |
failedElement
The element whose reverse failed
|
Constructor and Description |
---|
ReverseFailedException(java.lang.String message)
Constructs a new exception with the specified detail message.
|
ReverseFailedException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
ReverseFailedException(java.lang.Throwable cause)
Constructs a new exception with the specified cause.
|
Modifier and Type | Method and Description |
---|---|
MObject |
getFailureLocation()
Get the element whose reverse failed.
|
ReverseFailedException |
setFailureLocation(MObject failedElement)
Set the element whose reverse failed.
|
protected MObject failedElement
public ReverseFailedException(java.lang.String message)
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).public ReverseFailedException(java.lang.Throwable cause)
cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)public ReverseFailedException(java.lang.String message, java.lang.Throwable cause)
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)public MObject getFailureLocation()
public ReverseFailedException setFailureLocation(MObject failedElement)
failedElement
- the element not reversed.