mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-26 05:02:39 +01:00
20 lines
423 B
Go
20 lines
423 B
Go
|
package tradeoffer
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
// SteamError can be returned by Create, Accept, Decline and Cancel methods.
|
||
|
// It means we got response from steam, but it was in unknown format
|
||
|
// or request was declined.
|
||
|
type SteamError struct {
|
||
|
msg string
|
||
|
}
|
||
|
|
||
|
func (e *SteamError) Error() string {
|
||
|
return e.msg
|
||
|
}
|
||
|
func newSteamErrorf(format string, a ...interface{}) *SteamError {
|
||
|
return &SteamError{fmt.Sprintf(format, a...)}
|
||
|
}
|