Documentation ¶
Overview ¶
Package errordata helps with error serialization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Internal ¶
type Internal struct { Error string `json:"error,omitempty"` // Omitted if same as public error. Public *Public `json:"public,omitempty"` }
Internal details of an error.
type Module ¶
type Module struct {
UnexpectedEOF bool `json:"unexpected_eof,omitempty"`
}
Module error details.
type Public ¶
type Public struct { Error string `json:"error"` Module *Module `json:"module,omitempty"` ResourceLimit *ResourceLimit `json:"resource_limit,omitempty"` }
Public details of an error.
func (*Public) Reconstruct ¶
Reconstruct an error without internal details.
type ResourceLimit ¶
type ResourceLimit struct {
BufferSizeExceeded bool `json:"buffer_size_exceeded,omitempty"`
}
ResourceLimit error details.
Click to show internal directories.
Click to hide internal directories.