File size: 278 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package twilio

import "fmt"

// Exception contains information on a Twilio error.
type Exception struct {
	Status   int
	Message  string
	Code     int
	MoreInfo string `json:"more_info"`
}

func (e Exception) Error() string {
	return fmt.Sprintf("%d: %s", e.Code, e.Message)
}