// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdkerrors import ( "encoding/json" "net/http" ) type LogLineLogErrors struct { Code *int `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *int `json:"status,omitempty"` } func (l *LogLineLogErrors) GetCode() *int { if l == nil { return nil } return l.Code } func (l *LogLineLogErrors) GetMessage() *string { if l == nil { return nil } return l.Message } func (l *LogLineLogErrors) GetStatus() *int { if l == nil { return nil } return l.Status } // LogLineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. type LogLineUnauthorized struct { Errors []LogLineLogErrors `json:"errors,omitempty"` // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response `json:"-"` } var _ error = &LogLineUnauthorized{} func (e *LogLineUnauthorized) Error() string { data, _ := json.Marshal(e) return string(data) } type LogLineErrors struct { Code *int `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *int `json:"status,omitempty"` } func (l *LogLineErrors) GetCode() *int { if l == nil { return nil } return l.Code } func (l *LogLineErrors) GetMessage() *string { if l == nil { return nil } return l.Message } func (l *LogLineErrors) GetStatus() *int { if l == nil { return nil } return l.Status } // LogLineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. type LogLineBadRequest struct { Errors []LogLineErrors `json:"errors,omitempty"` // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response `json:"-"` } var _ error = &LogLineBadRequest{} func (e *LogLineBadRequest) Error() string { data, _ := json.Marshal(e) return string(data) }