API reference / @jsprismarine/errors / script-host
script-host
Classes
- DebuggerConnectionError
- DebuggerFramingError
- DebuggerTransportError
- ScriptError
- ScriptOutOfMemoryError
- ScriptTerminatedError
Variables
ScriptHostErrors
constScriptHostErrors:Readonly<{ApiError: typeofApiError;ArgumentConversionFailed: typeofArgumentConversionFailed;ArgumentNotOfType: typeofArgumentNotOfType;ArgumentVariantConversionFailed: typeofArgumentVariantConversionFailed;ConnectFailed: typeofConnectFailed;ConnectionWorkerOnMainThread: typeofConnectionWorkerOnMainThread;DebuggerAlreadyAttached: typeofDebuggerAlreadyAttached;DebuggerClosedConnection: typeofDebuggerClosedConnection;DebuggerDetached: typeofDebuggerDetached;DebuggerPasscodeMismatch: typeofDebuggerPasscodeMismatch;DebuggerPluginNotFound: typeofDebuggerPluginNotFound;DebuggerProtocolVersionMismatch: typeofDebuggerProtocolVersionMismatch;DebuggerThreadExited: typeofDebuggerThreadExited;DebuggerThreadRequestFailed: typeofDebuggerThreadRequestFailed;DebuggerThreadStopped: typeofDebuggerThreadStopped;DebuggerThreadThrew: typeofDebuggerThreadThrew;DebugSessionAlreadyAttached: typeofDebugSessionAlreadyAttached;DebugSessionDetached: typeofDebugSessionDetached;DeferredPromiseIncomplete: typeofDeferredPromiseIncomplete;DeferredPromiseNotAList: typeofDeferredPromiseNotAList;DependencyHasNoShape: typeofDependencyHasNoShape;DisplayOptionsNotAnObject: typeofDisplayOptionsNotAnObject;EngineDestroyed: typeofEngineDestroyed;EngineDestroyedDuringHostCall: typeofEngineDestroyedDuringHostCall;EngineGlobalMissing: typeofEngineGlobalMissing;EngineNotCreated: typeofEngineNotCreated;EngineRejectedValue: typeofEngineRejectedValue;EvaluateWhileRunning: typeofEvaluateWhileRunning;EventNoLongerValid: typeofEventNoLongerValid;ExpectedStringValue: typeofExpectedStringValue;ExportNotOfModuleClass: typeofExportNotOfModuleClass;FormKitFunctionMissing: typeofFormKitFunctionMissing;FrameBodyNotJson: typeofFrameBodyNotJson;FrameNotRead: typeofFrameNotRead;FrameTooLong: typeofFrameTooLong;ImplementedTwice: typeofImplementedTwice;InfinityNotSupported: typeofInfinityNotSupported;InterfacePropertyConversionFailed: typeofInterfacePropertyConversionFailed;InterfacePropertyMissing: typeofInterfacePropertyMissing;InterfacePropertyNotFinite: typeofInterfacePropertyNotFinite;InvalidDebuggerMessage: typeofInvalidDebuggerMessage;InvalidFrameHeader: typeofInvalidFrameHeader;InvalidPlayerHandle: typeofInvalidPlayerHandle;JspMemberUnavailable: typeofJspMemberUnavailable;JspModuleArgument: typeofJspModuleArgument;LibraryInterfaceMismatch: typeofLibraryInterfaceMismatch;ListenerClosed: typeofListenerClosed;ListenerHasNoAddress: typeofListenerHasNoAddress;ListenerNeedsPasscode: typeofListenerNeedsPasscode;ListenFailed: typeofListenFailed;LiteralEvaluatedToPrimitive: typeofLiteralEvaluatedToPrimitive;ManifestHeaderIncomplete: typeofManifestHeaderIncomplete;MemberNotPrivileged: typeofMemberNotPrivileged;ModuleNotFound: typeofModuleNotFound;ModuleVersionConflict: typeofModuleVersionConflict;ModuleVersionMissing: typeofModuleVersionMissing;NoScriptStopped: typeofNoScriptStopped;NotAFormBuilderMember: typeofNotAFormBuilderMember;NotAFunction: typeofNotAFunction;NotAnObject: typeofNotAnObject;NotImplemented: typeofNotImplemented;ObjectCarriesNoState: typeofObjectCarriesNoState;PackFileNotAnObject: typeofPackFileNotAnObject;PlaceholderName: typeofPlaceholderName;PlaceholderNamespaceTaken: typeofPlaceholderNamespaceTaken;PlaceholderNoKeys: typeofPlaceholderNoKeys;ReceivedFrameTooLong: typeofReceivedFrameTooLong;ScriptModuleWithoutUuid: typeofScriptModuleWithoutUuid;ScriptOutOfMemory: typeofScriptOutOfMemory;ScriptTerminated: typeofScriptTerminated;ScriptThrew: typeofScriptThrew;SegmentVersionMissing: typeofSegmentVersionMissing;TaskDelayNotFinite: typeofTaskDelayNotFinite;TemplateCondition: typeofTemplateCondition;TemplateInvalid: typeofTemplateInvalid;TestNoLongerBound: typeofTestNoLongerBound;TextConversionFailed: typeofTextConversionFailed;UnhandledDebuggerCommand: typeofUnhandledDebuggerCommand;UnknownApiMember: typeofUnknownApiMember;UnknownEngineRequest: typeofUnknownEngineRequest;UnknownHostFunction: typeofUnknownHostFunction;UnknownPauseReason: typeofUnknownPauseReason;UnknownValueTag: typeofUnknownValueTag;UnknownVariablesReference: typeofUnknownVariablesReference;UnrecognizedModule: typeofUnrecognizedModule;ValueCannotCrossIntoScript: typeofValueCannotCrossIntoScript;ValueRunsPastBytes: typeofValueRunsPastBytes;VariantConversionFailed: typeofVariantConversionFailed;VersionsNotComparable: typeofVersionsNotComparable; }>
Defined in: packages/errors/src/script-host.ts:3076
The errors @jsprismarine/script-host throws in Node.js. Errors a script sees from code that runs inside the engine are the engine's own TypeError, RangeError and ReferenceError, as on Bedrock Dedicated Server, and are not listed here.