You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/vendor/github.com/apparentlymart/go-rundeck-api/rundeck/error.go

22 lines
427 B

package rundeck
import "encoding/xml"
// Error implements the error interface for a Rundeck API error that was
// returned from the server as XML.
type Error struct {
XMLName xml.Name `xml:"result"`
IsError bool `xml:"error,attr"`
Message string `xml:"error>message"`
}
func (err Error) Error() string {
return err.Message
}
type NotFoundError struct {}
func (err NotFoundError) Error() string {
return "not found"
}