MIError

open fun MIError(miErrorEnum: MIErrorEnum)

MiError constructor made from enum with standard message

Parameters

miErrorEnum

MiError enum describing the issue


Parameters

code

One of the MISDKErrorCode codes


open fun MIError(miErrorEnum: MIErrorEnum, status: Int)

MiError constructor made from enum with standard message and a custom status

Parameters

miErrorEnum

MiError enum describing the issue

status

HTTP status code


open fun MIError(@MIError.MISDKErrorCode code: Int, status: Int)

Parameters

code

One of the MISDKErrorCode codes

status

If the error is network related, this will keep the original response's HttpURLConnection status code


open fun MIError(miErrorEnum: MIErrorEnum, @NonNull message: String)

Parameters

miErrorEnum

MiError enum describing the issue

message

An error's more detailed description, etc.


open fun MIError(@MIError.MISDKErrorCode code: Int, @NonNull message: String)

Parameters

code

One of the MISDKErrorCode codes

message

An error's more detailed description, etc.


open fun MIError(miErrorEnum: MIErrorEnum, message: String, status: Int)
open fun MIError(@NonNull miError: MIError)


open fun MIError(@MIError.MISDKErrorCode code: Int, @NonNull message: String, status: Int)

Parameters

code

One of the MISDKErrorCode codes

message

An error's more detailed description, etc.

status

If the error is network related, this will keep the original response's HttpURLConnection status code


open fun MIError(miErrorEnum: MIErrorEnum, errors: List<MIError>)

Parameters

miErrorEnum

MiError enum describing the issue

errors

A list of errors to be aggregated in a single one


open fun MIError(@MIError.MISDKErrorCode code: Int, @NonNull errors: List<MIError>)

Parameters

code

sdk error code

errors

A list of errors to be aggregated in a single one