Instantiates a new error with a message and an optional cause.
the type of resource that failed to read.
the namespace of the resource.
the name of the resource.
Optional
optional underlying cause of the error.
source error (if any)
error message
additional metadata (if any)
Readonly
Instantiates a new error with a message and an optional cause.