notFound

fun notFound(credentialId: String, cause: Throwable? = null): CredentialException.NotFound

Creates a credential not found error.

Return

NotFound exception instance

Parameters

credentialId

The ID of the credential that was not found

cause

Optional underlying cause