MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

Error

MMO.edms · 1 symbol · generated 27 Oct 2026

class

Error

edms.js:81

An answer of the api that is not a success: its http status, and why (the server's meta.error.message)

class MMO.edms.Error extends Error
Namespace
MMO.edms
Extends
Error

Index

Properties2

uploadReason

readonlyaccessoredms.js:98
get uploadReason()
Type
string
new MMO.edms.Error(413, 'the file is bigger than [10] bytes.').uploadReason // 'The file is too big.' (in the user's language)

serverReason

readonlyaccessoredms.js:116
get serverReason()
Type
?string
new MMO.edms.Error(503, 'Service Unavailable', {meta: {error: {message: 'The web server cannot write demo/db/files.json.'}}}).serverReason // 'The web server cannot write demo/db/files.json.'

Methods1

constructor(status, message, payload)

edms.js:87
constructor(status, message, payload = null)
statusnumber- 0 when the request did not reach the server
messagestring
payload = null?Object- the answer's body