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"`
}
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"`
}
Click to show internal directories.
Click to hide internal directories.