Class FailedCredentialReloadEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
se.swedenconnect.security.credential.spring.monitoring.events.AbstractCredentialMonitoringEvent
se.swedenconnect.security.credential.spring.monitoring.events.FailedCredentialReloadEvent
- All Implemented Interfaces:
Serializable
Event that is signalled when a credential has been reloaded with an error.
- Author:
- Martin Lindström
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionFailedCredentialReloadEvent
(String credentialName, String error, String exception) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Gets the error message for the test.Gets the name of the exception that led to the error.Methods inherited from class se.swedenconnect.security.credential.spring.monitoring.events.AbstractCredentialMonitoringEvent
getCredentialName
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
FailedCredentialReloadEvent
public FailedCredentialReloadEvent(@Nonnull String credentialName, @Nonnull String error, @Nullable String exception) Constructor.- Parameters:
credentialName
- the name of the credential that was reloadederror
- the error messageexception
- the name of the exception that led to the error
-
-
Method Details
-
getError
Gets the error message for the test.- Returns:
- the error message for the test
-
getException
Gets the name of the exception that led to the error.- Returns:
- the name of the exception that led to the error, or
null
-