Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResult ¶
ErrorResult represents an error returned by an API call.
func CreateBadInputParameterError ¶
func CreateBadInputParameterError(parameter, value, explanation string) *ErrorResult
CreateBadInputParameterError is a helper method to create a consistent error result across plugins when an input parameter has an unexpected format.
func CreateMissingInputParameterError ¶
func CreateMissingInputParameterError(parameter string) *ErrorResult
CreateMissingInputParameterError is a helper method to create a consistent error result across plugins when a mandatory parameter is missing.
func CreateSourceConnectionError ¶
func CreateSourceConnectionError(url, message string) *ErrorResult
CreateSourceConnectionError is a helper method to create a consistent error result across plugins when there is a connection problem to the data source or identity store.
func ToErrorResult ¶
func ToErrorResult(err error) *ErrorResult
ToErrorResult is a helper method to to create an ErrorResult from an error. If the error already is of type ErrorResult, the original is returned.
func (ErrorResult) Error ¶
func (e ErrorResult) Error() string