2018-05-05 17:00:56 +03:00

15 lines
321 B
Go

package rollbar
import (
"fmt"
)
// ErrHTTPError is an HTTP error status code as defined by
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
type ErrHTTPError int
// Error implements the error interface.
func (e ErrHTTPError) Error() string {
return fmt.Sprintf("rollbar: service returned status: %d", e)
}