Index

CustomError

MMO · 1 symbol · generated 5 Oct 2026

mixin

CustomError

Error.js:25

Build an MMO error class on top of a native one.

class MMO.CustomError extends Error
Namespace
MMO
Extends
Error
Every MMO error carries: - `origin`: the object that raised it, so a console log shows WHERE it came from - `values`: the data injected into the message, still readable programmatically and the message itself is a `MMO.core.strings.printf` format, so the same error can be logged, matched on, and shown to a user. `values.cause` is lifted into the native `cause` option rather than injected.

Methods1

constructor(origin, message, values)

Error.js:26
constructor(origin, message, values = null)
origin
message
values = null