Documentation
¶
Index ¶
- type GoxError
- func (e *GoxError) AddDetail(key string, value string) *GoxError
- func (e *GoxError) CloneDetails() map[string]string
- func (e *GoxError) EnsureStatus()
- func (e *GoxError) Error() string
- func (e *GoxError) GetCause() error
- func (e *GoxError) GetColumn() int
- func (e *GoxError) GetDetails() map[string]string
- func (e *GoxError) GetExpected() string
- func (e *GoxError) GetFile() string
- func (e *GoxError) GetFound() string
- func (e *GoxError) GetGeneratedFile() string
- func (e *GoxError) GetHint() string
- func (e *GoxError) GetIsAction() bool
- func (e *GoxError) GetKind() string
- func (e *GoxError) GetLine() int
- func (e *GoxError) GetMessage() string
- func (e *GoxError) GetMethod() string
- func (e *GoxError) GetOriginalError() gox.Error
- func (e *GoxError) GetPluginPath() string
- func (e *GoxError) GetRoute() string
- func (e *GoxError) GetStack() string
- func (e *GoxError) GetStage() gox.GoxErrorStage
- func (e *GoxError) GetStatusCode() int
- func (e *GoxError) GetStatusMessage() string
- func (e *GoxError) Unwrap() error
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoxError ¶
type GoxError struct {
Type Type
Stage gox.GoxErrorStage
Kind string
Route string
Method string
IsAction bool
File string
Line int
Column int
GeneratedFile string
PluginPath string
Message string
Hint string
Expected string
Found string
Cause error
Stack string
OriginalError *GoxError
Status int
StatusCode int
StatusMessage string
Details map[string]string
}
GoxError is the single internal error model used by compiler, template, build, load and runtime layers. Public SDK access must continue going through github.com/gox-lang/gox.Error.
func NewFromStage ¶
func NewFromStage(stage gox.GoxErrorStage, message string, cause error) *GoxError
func (*GoxError) CloneDetails ¶
func (*GoxError) EnsureStatus ¶
func (e *GoxError) EnsureStatus()
func (*GoxError) GetDetails ¶
func (*GoxError) GetExpected ¶
func (*GoxError) GetGeneratedFile ¶
func (*GoxError) GetIsAction ¶
func (*GoxError) GetMessage ¶
func (*GoxError) GetOriginalError ¶
func (*GoxError) GetPluginPath ¶
func (*GoxError) GetStage ¶
func (e *GoxError) GetStage() gox.GoxErrorStage
func (*GoxError) GetStatusCode ¶
func (*GoxError) GetStatusMessage ¶
type Type ¶
type Type string
Type identifies the subsystem that produced a Gox error.
func TypeFromStage ¶
func TypeFromStage(stage gox.GoxErrorStage) Type
Click to show internal directories.
Click to hide internal directories.