Skip to content
Snippets Groups Projects

F update

All threads resolved!
Merged Timm Fitschen requested to merge f-update into dev
All threads resolved!
Files
5
@@ -73,10 +73,22 @@ public:
: Exception(StatusCode::GENERIC_TRANSACTION_ERROR, what_arg) {}
};
class TransactionStatusError : public TransactionError {
/**
* @brief The transaction is in the wrong state for your action.
*/
class TransactionStatusError : public Exception {
public:
explicit TransactionStatusError(const std::string &what_arg)
: TransactionError(StatusCode::TRANSACTION_STATUS_ERROR, what_arg) {}
: Exception(StatusCode::TRANSACTION_STATUS_ERROR, what_arg) {}
};
/**
* @brief The transaction has a wrong type for your action.
*/
class TransactionTypeError : public Exception {
public:
explicit TransactionTypeError(const std::string &what_arg)
: Exception(StatusCode::TRANSACTION_TYPE_ERROR, what_arg) {}
};
/**
Loading