of
fun of( message: String? = null, cause: Throwable? = null, context: ExecutionContext, type: <ERROR CLASS>, extraData: <ERROR CLASS>? = null): LogicError
Content copied to clipboard
Factory method for LogicErrors
It creates correct subclass instance if type detected, otherwise defaulting to a LogicError instance
fun of( message: String? = null, cause: Throwable? = null, contexts: Array<ExecutionContext>, type: <ERROR CLASS>, extraData: <ERROR CLASS>? = null): LogicError
Content copied to clipboard