Class: Protection

GoBrain.Exceptions. Protection

new GoBrain.Exceptions.Protection(clazz, message, type, data, exception, severity)

GoBrain.Core/src/exceptions/protection.js, line 1

Protection exception.

Protection 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.

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
data Object

Any additional data given with the event.

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.

Extends