Skip to content

__Error__

Hyomoto edited this page Jun 24, 2021 · 4 revisions
Jump To Go Back Methods Variables

Error( )

Implements: Struct

Error is an inheritable type for building Errors. It provides a convenient point of entry and formatting for GML errors and is used by all errors thrown by FAST.

Methods

Jump To top from_error from_string conc toString

from_error( error )

Name Type Purpose
error struct A previously generated error

Can be used to inject one error into another. This is to allow injecting GMS-thrown exceptions into FAST's error handling.


from_string( error )

Name Type Purpose
error struct A previously generated error

Can be used to create a generic error from a string. This is to allow injecting GMS-thrown one-off errors into FAST's error handling.


conc( values... )

Name Type Purpose
values... mixed No description

Concantates the provided values into a message string.


toString( )

Name Type Purpose
None

Returns the error message formatted for the unhandled exception handler.


Variables

Jump To top
Name Type Initial Purpose
Width int 92 Determines where line breaks should be inserted into error messages
message string "" A short, descriptive error message that will be displayed to the user
longMessage string "" Unused, a full more descriptive error message
stacktrace array [] The stack trace that caused the error
script string "" The script that caused the error
Clone this wiki locally