Error

constructor(message: String, data: T? = null)

Parameters

data

The data associated with the error state.

message

A message describing the error.