4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-28 05:39:25 +00:00

Add vendor (steam)

This commit is contained in:
Wim
2017-06-22 01:00:27 +02:00
parent 1f9874102a
commit 1f91461853
117 changed files with 115543 additions and 0 deletions

View File

@ -0,0 +1,19 @@
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...)}
}