Exemple #1
0
func (e Error) Error() string {
	return fmt.Sprintf(
		"[%s] %s", e.descr, C.GoString(C.GSM_ErrorString(C.GSM_Error(e.g))),
	)
}
Exemple #2
0
func (e EncodeError) Error() string {
	return fmt.Sprintf(
		"[EncodeMultiPartSMS] %s", C.GoString(C.GSM_ErrorString(C.GSM_Error(e.g))),
	)
}
Exemple #3
0
// Returns error message string
func errorString(e int) string {
	return C.GoString(C.GSM_ErrorString(C.GSM_Error(e)))
}