mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
13 lines
233 B
Go
13 lines
233 B
Go
package errors
|
|
|
|
type InvalidPayloadError struct {
|
|
msg string
|
|
}
|
|
|
|
func (e *InvalidPayloadError) Error() string {
|
|
return e.msg
|
|
}
|
|
|
|
func NewInvalidPayloadError(msg string) *InvalidPayloadError {
|
|
return &InvalidPayloadError{msg: msg}
|
|
}
|