|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.inria.ns.reflex.structures.LocalizableException
public class LocalizableException
An exception that allows to localize the cause in a file.
| Constructor Summary | |
|---|---|
LocalizableException()
Create a new instance of localizable exception. |
|
LocalizableException(Localizable localizable,
String msg)
Constructs an instance of LocalizableException with the
specified localizable and detail message. |
|
LocalizableException(Localizable localizable,
String message,
Throwable cause)
Create a new instance of localizable exception. |
|
LocalizableException(Localizable localizable,
Throwable cause)
Constructs an instance of LocalizableException with the
specified localizable and cause. |
|
LocalizableException(String message)
Create a new instance of localizable exception. |
|
LocalizableException(String message,
Throwable cause)
Create a new instance of localizable exception. |
|
LocalizableException(Throwable cause)
Create a new instance of localizable exception. |
|
| Method Summary | |
|---|---|
String |
getLocalizedMessage()
Return a formatted message. |
XFile |
getLocation()
Get the location of this error. |
boolean |
isLocalizable()
Indicates if this error is localizable or not. |
void |
setLocation(XFile location)
Set the location of this error. |
boolean |
wasTraced()
Indicates if this exception was already traced. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalizableException()
public LocalizableException(String message)
message - The message.
public LocalizableException(String message,
Throwable cause)
message - The message.cause - The cause.public LocalizableException(Throwable cause)
cause - The cause.
public LocalizableException(Localizable localizable,
Throwable cause)
LocalizableException with the
specified localizable and cause.
localizable - The localizable that contains the source file in fault,
or null.cause - The Throwable exception that interfered with the normal
initialization operation, making the exception necessary.
public LocalizableException(Localizable localizable,
String msg)
LocalizableException with the
specified localizable and detail message.
localizable - The localizable that contains the source file in fault,
or null.msg - The detail message.
public LocalizableException(Localizable localizable,
String message,
Throwable cause)
localizable - The localizable that contains the source file in fault,
or null.message - The message.cause - The cause.| Method Detail |
|---|
public XFile getLocation()
throws UnlocalizableException
getLocation in interface LocalizableUnlocalizableException - If this error is not localizable.Localizable.getLocation()
public void setLocation(XFile location)
throws UnlocalizableException
setLocation in interface Localizablelocation - The file that cause the error.
UnlocalizableException - If a base URI is irrelevant for
this instance.Localizable.setLocation(org.inria.ns.reflex.modules.io.XFile)public boolean isLocalizable()
isLocalizable in interface Localizabletrue if this error is localizable, false otherwise.Localizable.isLocalizable()public boolean wasTraced()
true if this exception has been already traced,
false otherwise.public String getLocalizedMessage()
getLocalizedMessage in class ThrowableThrowable.getLocalizedMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||