NotFound

data class NotFound(val resource: String? = null, val message: String = resource?.let { "Resource not found: $it" } ?: "Resource not found", baseContext: Map<String, Any?> = emptyMap(), val cause: Throwable? = null) : TrustWeaveException

Constructors

Link copied to clipboard
constructor(resource: String? = null, message: String = resource?.let { "Resource not found: $it" } ?: "Resource not found", baseContext: Map<String, Any?> = emptyMap(), cause: Throwable? = null)

Properties

Link copied to clipboard
open override val cause: Throwable?
Link copied to clipboard
open val code: String
Link copied to clipboard
open override val context: Map<String, Any?>

Context map containing additional error information.

Link copied to clipboard
open override val message: String
Link copied to clipboard

Functions

Link copied to clipboard

Checks if the exception is configuration-related (i.e., an instance of ConfigException).

Link copied to clipboard

Checks if the exception is encoding/digest-related.

Link copied to clipboard

Checks if the exception is serialization/JSON-related (i.e., an instance of SerializationException).

Link copied to clipboard

Checks if the exception is plugin-related (i.e., an instance of PluginException).

Link copied to clipboard

Checks if the exception is provider-related (i.e., an instance of ProviderException).

Link copied to clipboard

Checks if the exception is validation-related.

Link copied to clipboard

Extension function to convert any Throwable to a TrustWeaveException.