| | |
| | | |
| | | super(message); |
| | | |
| | | /** @type {string} */ |
| | | this.name = "ModuleError"; |
| | | /** @type {Error} */ |
| | | this.error = err; |
| | | /** @type {string | undefined} */ |
| | | this.details = |
| | | err && typeof err === "object" && err.stack |
| | | ? cleanUp(err.stack, this.message) |
| | |
| | | } |
| | | |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @param {ObjectSerializerContext} context context |
| | | */ |
| | | serialize(context) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @param {ObjectDeserializerContext} context context |
| | | */ |
| | | deserialize(context) { |