Private
constructorOptional
message: stringPrivate
innerPrivate
Optional
messageReturns an object containing the inner
data and the optional message if
it is expected to be a LoggerError
, otherwise return null
.
Static
ErrCreate a new LoggerResult<T>
that is guaranteed to have an inner
data
of LoggerError
with an optional accompanying message
string.
The enum describes the reason behind the error.
Optional
message: stringThe optional message for additional context to the error
.
Static
OkCreate a new LoggerResult<T>
that is guaranteed to have an inner
data
of type T
.
The T
data to insert into the inner value of this result type.
Generated using TypeDoc
A "result" type that is used in conjuction with the
LoggerError
enum to describe and handle a possible error returned from thelog
functions.