Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredstackError ¶
type CredstackError struct { // HTTPStatusCode - The HTTP Status Code that correlates to this error HTTPStatusCode int // ShortCode - A string representing a shorter error message that can be used to validate the type of error ShortCode string // Message - A string representing the error message Message string }
CredstackError - Provides a custom error structure that provides more information regarding errors than the standard error struct. This implemented the error interface so it can be use interchangeably with standard Go code
func (CredstackError) Error ¶
func (err CredstackError) Error() string
Error - Returns the error message that is stored in the CredstackError struct. Required to implement the error interface
func (CredstackError) HTTPCode ¶
func (err CredstackError) HTTPCode() int
HTTPCode - Returns the HTTP Status Code that correlates to this error
func (CredstackError) Short ¶
func (err CredstackError) Short() string
Short - Provides the short code of the error in the form of a string
Click to show internal directories.
Click to hide internal directories.