exceptions

package
v0.0.14-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2025 License: AGPL-3.0 Imports: 0 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddError

func AddError(public_description string, public_type ERROR_TYPE, private_description string, private_type ERROR_TYPE)

Types

type ERROR_TYPE

type ERROR_TYPE string
const (
	GENERIC_ERROR                        ERROR_TYPE = "GenericException"
	PREVIOUS_STAGE_FAILED                ERROR_TYPE = "PreviousStageFailed"
	FAILED_TO_READ_PREVIOUS_STAGE_OUTPUT ERROR_TYPE = "FailedToReadPreviousStageOutput"
	UNSUPPORTED_LANGUAGE_REQUESTED       ERROR_TYPE = "UnsupportedLanguageRequested"
)

type Error

type Error struct {
	Private ErrorContent `json:"private_error"`
	Public  ErrorContent `json:"public_error"`
}

func GetErrors

func GetErrors() []Error

type ErrorContent

type ErrorContent struct {
	Description string     `json:"description"`
	Type        ERROR_TYPE `json:"key"`
}

type PrivateError

type PrivateError struct {
	Type        ERROR_TYPE `json:"key"`
	Description string     `json:"description"`
}

type PublicError

type PublicError struct {
	Type        ERROR_TYPE `json:"key"`
	Description string     `json:"description"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL