mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-30 05:50:56 +00:00
15 lines
341 B
Go
15 lines
341 B
Go
package xmlrpc
|
|
|
|
import "fmt"
|
|
|
|
// Fault is a wrapper for XML-RPC fault object
|
|
type Fault struct {
|
|
// Code provides numerical failure code
|
|
Code int
|
|
// String includes more detailed information about the fault, such as error name and cause
|
|
String string
|
|
}
|
|
|
|
func (f *Fault) Error() string {
|
|
return fmt.Sprintf("%d: %s", f.Code, f.String)
|
|
}
|