Debug
This class provides different debug behaviour based on the SWITCH_DEBUG build flag
Static Method Summary
Static Public Methods | ||
public static |
defaultErrorHandler(message: string) a default error handler for .catch functions |
|
public static |
prints an error |
|
public static |
Prints an info note if in debug mode |
|
public static |
tryOrThrow(cb: function) if in release mode all thrown errors in the callback are catched and the program is continued |
|
public static |
prints a warning |
Static Public Methods
public static defaultErrorHandler(message: string) source
a default error handler for .catch functions
Params:
Name | Type | Attribute | Description |
message | string |
public static error(msg: string) source
prints an error
Params:
Name | Type | Attribute | Description |
msg | string |
public static info(msg: string) source
Prints an info note if in debug mode
Params:
Name | Type | Attribute | Description |
msg | string |