MoodleWSError

MoodleWSError

A custom error class for Moodle Web Service Exceptions. This class is exported as @maynoothuniversity/moodle-ws-client.MoodleWSError.

Constructor

Fcnew MoodleWSError(responseData)

See:
Parameters:
Name Type Description
responseData object

the response data returned by the Moodle web service. Expected to be an object indexed by exception, errorcode & message

Extends

  • Error

Members

V(readonly) name :string

The error's name.

Type:
  • string

Methods

FresponseData() → {object}

Get the response data.

Returns:
Type:
object