TransactionError constructor
Create a TransactionError.
Implementation
TransactionError(this.message, int status, {this.detail}) {
switch (status) {
case 408:
errorType = TransactionErrorType.timeout;
break;
case 500:
errorType = TransactionErrorType.notFound;
break;
default:
errorType = TransactionErrorType.networkError;
break;
}
}