The highest tagged major version is
v3 .
Discover Packages
github.com/PaddleHQ/paddle-go-sdk
pkg
paddleerr
package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jul 26, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Error struct {
Status int `json:"-"`
Type ErrorType `json:"type"`
Code string `json:"code"`
Detail string `json:"detail"`
DocumentationURL string `json:"documentation_url"`
Errors []ValidationError `json:"errors,omitempty"`
}
Error conforms to the errors interface.
It returns a string representation of the error, which contains the type and
code of the error, and the detail if it exists.
If the documentation URL exists, it will be appended to the end of the string.
Is returns true if the target error is a *Error and the error type and code match.
const (
ErrorTypeRequestError ErrorType = "request_error"
ErrorTypeAPIError ErrorType = "api_error"
)
type ValidationError struct {
Field string `json:"field"`
Message string `json:"message"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.