UBIResult.failure constructor

UBIResult.failure(
  1. String code,
  2. String? msg
)

Implementation

UBIResult.failure(String code, String? msg)
    : this(int.tryParse(code) ?? ErrorCode.unknownError, msg: msg);