new GoBrain.Exceptions.Network(clazz, message, type, data, code, exception, severity)
GoBrain.Core/src/exceptions/network.js, line 1
Network exception.
Network exception.
Name | Type | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
clazz |
function |
Child class reference. |
||||||||||
message |
String |
optional
Exception message. |
||||||||||
type |
GoBrain.Errors |
The GoBrain error type. This is used to route and distinguish errors. |
||||||||||
data |
Object | {} |
optional
Any additional data given with the event.
|
|||||||||
code |
Number |
The network status code. |
||||||||||
exception |
GoBrain.Exceptions.Exception | Error |
optional
Nested exception. Used if the exception wraps another exception. |
||||||||||
severity |
GoBrain.Exceptions.Severity | GoBrain.Exceptions.Severity.Fatal |
optional
Exception severity. |
Properties:
Name | Type | Argument | Default | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code |
Number | The network status code. |
||||||||||||||
data |
Object | Any additional data given with the event. Properties
|
||||||||||||||
exception |
GoBrain.Exceptions.Exception | Error | Nested exception. Used if the exception wraps another exception. |
||||||||||||||
message |
String | Exception message. |
||||||||||||||
name |
String | Exception name. |
||||||||||||||
severity |
GoBrain.Exceptions.Severity |
<optional> |
GoBrain.Exceptions.Severity.Fatal | Exception severity. |
||||||||||||
stack |
String | Exception stack trace. |
||||||||||||||
type |
GoBrain.Errors | The GoBrain error type. This is used to route and distinguish errors. |