Package jason
Class JasonException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jason.JasonException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoOptionException
,NoValueException
,ReceiverNotFoundException
,RevisionFailedException
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new instance ofJasonException
without detail message.JasonException
(String msg) Constructs an instance ofJasonException
with the specified detail message.JasonException
(String msg, Term error) Constructs an instance ofJasonException
with the specified detail message and error description term.JasonException
(String msg, Term error, Exception cause) JasonException
(String msg, Exception cause) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static ListTerm
createBasicErrorAnnots
(Term id, String msg) static ListTerm
createBasicErrorAnnots
(String id, String msg) static JasonException
createWrongArgument
(InternalAction ia, String reason) static JasonException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
WRONG_ARGS
-
UNKNOW_ERROR
-
error
-
errorAnnots
-
-
Constructor Details
-
JasonException
public JasonException()Creates a new instance ofJasonException
without detail message. -
JasonException
Constructs an instance ofJasonException
with the specified detail message.- Parameters:
msg
- the detail message.
-
JasonException
Constructs an instance ofJasonException
with the specified detail message and error description term.- Parameters:
msg
- the detail message.error
- the term that details (in AgentSpeak) the error
-
JasonException
-
JasonException
-
-
Method Details
-
addErrorAnnot
-
getErrorTerms
-
createWrongArgumentNb
-
createWrongArgument
-
createBasicErrorAnnots
-
createBasicErrorAnnots
-