Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ecsec Public
reqesidta-prototype
client-signer
Commits
a223625d
Commit
a223625d
authored
Oct 23, 2019
by
Michael Rauh
Browse files
Add function to get long value from SCIOErrorCode
parent
e45b7704
Changes
1
Hide whitespace changes
Inline
Side-by-side
ifd/ifd-common/src/main/java/org/openecard/common/ifd/scio/SCIOErrorCode.java
View file @
a223625d
...
...
@@ -188,8 +188,18 @@ public enum SCIOErrorCode {
return
next
;
}
}
// no match found, unkown error
// no match found, unk
n
own error
return
SCARD_F_UNKNOWN_ERROR
;
}
public
static
long
getLong
(
SCIOErrorCode
code
)
{
for
(
SCIOErrorCode
next
:
SCIOErrorCode
.
values
())
{
if
(
next
.
name
().
equals
(
code
.
name
()))
{
return
next
.
codes
[
0
];
}
}
// no match found, unknown error (SCARD_F_UNKNOWN_ERROR)
return
-
2146435052
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment