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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofJasonExceptionwithout detail message.JasonException(String msg) Constructs an instance ofJasonExceptionwith the specified detail message.JasonException(String msg, Term error) Constructs an instance ofJasonExceptionwith the specified detail message and error description term.JasonException(String msg, Term error, Exception cause) JasonException(String msg, Exception cause) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic ListTermcreateBasicErrorAnnots(Term id, String msg) static ListTermcreateBasicErrorAnnots(String id, String msg) static JasonExceptioncreateWrongArgument(InternalAction ia, String reason) static JasonExceptionMethods 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 ofJasonExceptionwithout detail message. -
JasonException
Constructs an instance ofJasonExceptionwith the specified detail message.- Parameters:
msg- the detail message.
-
JasonException
Constructs an instance ofJasonExceptionwith 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
-