integrate request builder into HTTP client for googleapis support (#159)
This commit is contained in:
14
status/error.go
Normal file
14
status/error.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package status
|
||||
|
||||
// Error is a thin wrapper around Status that implements the error interface.
|
||||
type Error struct {
|
||||
s *Status
|
||||
}
|
||||
|
||||
func (e *Error) Error() string {
|
||||
return e.s.String()
|
||||
}
|
||||
|
||||
func (e *Error) HTTPStatus() *Status {
|
||||
return e.s
|
||||
}
|
||||
Reference in New Issue
Block a user