Class NoSuchCredentialException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
se.swedenconnect.security.credential.bundle.NoSuchCredentialException
- All Implemented Interfaces:
Serializable
Exception indicating that a
PkiCredential
was referenced
with an ID that does not match any registered credential.- Author:
- Martin Lindström
- See Also:
-
Constructor Summary
ConstructorDescriptionNoSuchCredentialException
(String id, String message) Constructor accepting the credential ID and a message.NoSuchCredentialException
(String id, String message, Throwable cause) Constructor accepting the credential ID, a message and the cause of the error. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchCredentialException
Constructor accepting the credential ID and a message.- Parameters:
id
- the credential IDmessage
- the message
-
NoSuchCredentialException
public NoSuchCredentialException(@Nonnull String id, @Nullable String message, @Nullable Throwable cause) Constructor accepting the credential ID, a message and the cause of the error.- Parameters:
id
- the credential IDmessage
- the messagecause
- the cause of the error
-
-
Method Details
-
getCredentialId
Gets the credential ID.- Returns:
- an ID
-