Package org.btrplace.json
Class JSONConverterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.btrplace.json.JSONConverterException
- All Implemented Interfaces:
Serializable
public class JSONConverterException extends Exception
An exception related to a conversion process.
- Author:
- Fabien Hermenier
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description JSONConverterException(String msg)
Make a new exception.JSONConverterException(String msg, Throwable t)
Make a new exception.JSONConverterException(Throwable t)
Rethrow an existing exception. -
Method Summary
Modifier and Type Method Description static JSONConverterException
nodeAlreadyDeclared(int id)
State a node has already been declared.static JSONConverterException
vmAlreadyDeclared(int id)
State a VM has already been declared.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JSONConverterException
Make a new exception.- Parameters:
msg
- the error message
-
JSONConverterException
Make a new exception.- Parameters:
msg
- the error messaget
- the root exception
-
JSONConverterException
Rethrow an existing exception.- Parameters:
t
- the exception to rethrow
-
-
Method Details
-
nodeAlreadyDeclared
State a node has already been declared.- Parameters:
id
- the node identifier- Returns:
- the generated exception
-
vmAlreadyDeclared
State a VM has already been declared.- Parameters:
id
- the VM identifier- Returns:
- the generated exception
-