Class MoodleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.jdrupes.keycloak.moodleauth.moodle.MoodleException
- All Implemented Interfaces:
Serializable
Represents a moodle exception
- See Also:
-
Constructor Summary
ConstructorDescriptionMoodleException
(MoodleErrorValues error) Instantiates a new moodle exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MoodleException
Instantiates a new moodle exception.- Parameters:
error
- the error
-
-
Method Details
-
error
Returns the error reported by moodle.- Returns:
- the string
-
errorCode
Returns the error code reported by moodle.- Returns:
- the string
-
message
Returns the message provided by moodle.- Returns:
- the string
-
exception
Return the exception provided by moodle.- Returns:
- the string
-
toString
-