error

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Auto-injected error response object by the dev platform

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMessage

type AppMessage struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  The map of argument name to value.
	*/
	ArgumentsMap map[string]string `json:"argumentsMap,omitempty"`
	/*
	  The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000
	*/
	Code *string `json:"code,omitempty"`
	/*
	  The error group associated with this message of severity ERROR.
	*/
	ErrorGroup *string `json:"errorGroup,omitempty"`
	/*
	  Locale for this message. The default locale would be 'en-US'.
	*/
	Locale *string `json:"locale,omitempty"`
	/*
	  The message string.
	*/
	Message *string `json:"message,omitempty"`

	Severity *import1.MessageSeverity `json:"severity,omitempty"`
}

Message with associated severity describing status of the current operation.

func NewAppMessage

func NewAppMessage() *AppMessage

type ErrorResponse

type ErrorResponse struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*

	 */
	ErrorItemDiscriminator_ *string `json:"$errorItemDiscriminator,omitempty"`

	Error *OneOfErrorResponseError `json:"error,omitempty"`
}

An error response indicates that the operation has failed either due to a client error(4XX) or server error(5XX). Please look at the HTTP status code and namespace specific error code and error message for further details.

func NewErrorResponse

func NewErrorResponse() *ErrorResponse

func (*ErrorResponse) GetError

func (p *ErrorResponse) GetError() interface{}

func (*ErrorResponse) SetError

func (p *ErrorResponse) SetError(v interface{}) error

type FileDetail

type FileDetail struct {
	Path        *string `json:"-"`
	ObjectType_ *string `json:"-"`
}

func NewFileDetail

func NewFileDetail() *FileDetail

type OneOfErrorResponseError

type OneOfErrorResponseError struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfErrorResponseError

func NewOneOfErrorResponseError() *OneOfErrorResponseError

func (*OneOfErrorResponseError) GetValue

func (p *OneOfErrorResponseError) GetValue() interface{}

func (*OneOfErrorResponseError) MarshalJSON

func (p *OneOfErrorResponseError) MarshalJSON() ([]byte, error)

func (*OneOfErrorResponseError) SetValue

func (p *OneOfErrorResponseError) SetValue(v interface{}) error

func (*OneOfErrorResponseError) UnmarshalJSON

func (p *OneOfErrorResponseError) UnmarshalJSON(b []byte) error

type SchemaValidationError

type SchemaValidationError struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  The generic error message for the response.
	*/
	Error *string `json:"error,omitempty"`
	/*
	  API path on which the request was made.
	*/
	Path *string `json:"path,omitempty"`
	/*
	  The HTTP status code of the response.
	*/
	StatusCode *int `json:"statusCode,omitempty"`
	/*
	  Timestamp of the response.
	*/
	Timestamp *time.Time `json:"timestamp,omitempty"`
	/*
	  List of validation error messages
	*/
	ValidationErrorMessages []SchemaValidationErrorMessage `json:"validationErrorMessages,omitempty"`
}

This schema is generated from SchemaValidationError.java

func NewSchemaValidationError

func NewSchemaValidationError() *SchemaValidationError

type SchemaValidationErrorMessage

type SchemaValidationErrorMessage struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  The path of the attribute that failed validation in the schema.
	*/
	AttributePath *string `json:"attributePath,omitempty"`
	/*
	  The part of the request that failed validation. Validation can fail for path, query parameters, and request body.
	*/
	Location *string `json:"location,omitempty"`
	/*
	  The detailed message for the validation error.
	*/
	Message *string `json:"message,omitempty"`
}

This schema is generated from SchemaValidationErrorMessage.java

func NewSchemaValidationErrorMessage

func NewSchemaValidationErrorMessage() *SchemaValidationErrorMessage

Jump to

Keyboard shortcuts

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