mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 05:49:40 +02:00
14 lines
233 B
Go
14 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}
|
||
|
}
|