// Code generated by Azure.Iot.Operations.ProtocolCompilerLib v0.10.0.0; DO NOT EDIT.
package schemaregistry

// Error object for schema operations
type SchemaRegistryError struct {

	// Error code for classification of errors (ex: '400', '404', '500', etc.).
	Code SchemaRegistryErrorCode `json:"code"`

	// Additional details about the error, if available.
	Details *SchemaRegistryErrorDetails `json:"details,omitempty"`

	// Inner error object for nested errors, if applicable.
	InnerError *SchemaRegistryErrorDetails `json:"innerError,omitempty"`

	// Human-readable error message.
	Message string `json:"message"`

	// Target of the error, if applicable (e.g., 'schemaType').
	Target *SchemaRegistryErrorTarget `json:"target,omitempty"`
}
