Skip to content

Commit

Permalink
Added new ApiErrorCodes (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopsaheysa authored Mar 21, 2024
1 parent 3e9d40c commit 900fe99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ Each `ApiError ` has an optional `error` property for why the error was created.
| `POWERAUTH_AUTH_FAIL` | General authentication failure (wrong password, wrong activation state, etc...) |
| `INVALID_REQUEST` | Invalid request sent - missing request object in the request |
| `INVALID_ACTIVATION` | Activation is not valid (it is different from configured activation) |
| `INVALID_APPLICATION` | Invalid application identifier is attempted for operation manipulation. |
| `INVALID_OPERATION` | Invalid operation identifier is attempted for operation manipulation. |
| `ERR_ACTIVATION` | Error during activation |
| `ERR_AUTHENTICATION` | Error in case that PowerAuth authentication fails |
| `ERR_SECURE_VAULT` | Error during secure vault unlocking |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ enum class ApiErrorCode(val message: String) {
/** Activation is not valid (it is different from configured activation) **/
INVALID_ACTIVATION("INVALID_ACTIVATION"),

/** Invalid application identifier is attempted for operation manipulation. **/
INVALID_APPLICATION("INVALID_APPLICATION"),

/** Invalid operation identifier is attempted for operation manipulation. **/
INVALID_OPERATION("INVALID_OPERATION"),

/** Error during activation **/
ERR_ACTIVATION("ERR_ACTIVATION"),

Expand Down

0 comments on commit 900fe99

Please sign in to comment.