@@ -13,19 +13,19 @@ import (
1313// serialized to various formats like JSON and YAML.
1414type ErrorOutput struct {
1515 // Message contains the main error message
16- Message string `json:"message" yaml:"message"`
16+ Message string `json:"message" yaml:"message"`
1717 // Timestamp indicates when the error occurred
18- Timestamp string `json:"timestamp" yaml:"timestamp"`
18+ Timestamp string `json:"timestamp" yaml:"timestamp"`
1919 // Type categorizes the error
20- Type string `json:"type" yaml:"type"`
20+ Type string `json:"type" yaml:"type"`
2121 // Severity indicates the error's impact level
22- Severity string `json:"severity" yaml:"severity"`
22+ Severity string `json:"severity" yaml:"severity"`
2323 // Stack contains the error stack trace
24- Stack string `json:"stack" yaml:"stack"`
24+ Stack string `json:"stack" yaml:"stack"`
2525 // Cause contains the underlying error if any
26- Cause * ErrorOutput `json:"cause,omitempty" yaml:"cause,omitempty"`
26+ Cause * ErrorOutput `json:"cause,omitempty" yaml:"cause,omitempty"`
2727 // Context contains additional error context
28- Context map [string ]any `json:"context,omitempty" yaml:"context,omitempty"`
28+ Context map [string ]any `json:"context,omitempty" yaml:"context,omitempty"`
2929 // Metadata contains user-defined metadata
3030 Metadata map [string ]any `json:"metadata,omitempty" yaml:"metadata,omitempty"`
3131 // Recovery provides guidance on resolving the error
0 commit comments