-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.thrift
80 lines (47 loc) · 1.53 KB
/
errors.thrift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
include "types.thrift"
namespace py smaclib.api.errors
const i16 UNKNOWN_MIMETYPE = 7000
const string UNKNOWN_MIMETYPE_MSG = "Unknown mime type: {mimetype}"
exception UnknownMimetype {
1: types.Mimetype mimetype,
}
const i16 INVALID_UPLOAD_ID = 7001
const string INVALID_UPLOAD_ID_MSG = "Invalid upload id: {upload_id}"
exception InvalidUploadID {
1: string upload_id,
}
const i16 NO_SUITABLE_ENCODER = 7002
const string NO_SUITABLE_ENCODER_MSG = "No suitable encoder for {mimetype}"
exception NoSuitableEncoder {
1: types.Mimetype mimetype
}
const i16 INVALID_BITRATE = 7003
const string INVALID_BITRATE_MSG = "Invalid {media} bitrate: {bitrate}"
exception InvalidBitrate {
1: string media
2: string bitrate
}
const i16 ASSET_NOT_FOUND = 7004
const string ASSET_NOT_FOUND_MSG = "Asset with ID '{asset_id}' not found"
exception AssetNotFound {
1: string asset_id
}
const i16 TASK_NOT_FOUND = 7005
const string TASK_NOT_FOUND_MSG = "Task with ID '{task_id}' not found"
exception TaskNotFound {
1: types.TaskID task_id
}
const i16 OPERATION_NOT_SUPPORTED = 7006
const string OPERATION_NOT_SUPPORTED_MSG = "Task '{task_id}' cannot be {action}"
exception OperationNotSupported {
1: types.TaskID task_id
2: string action
}
const i16 INVALID_FORMAT = 7007
const string INVALID_FORMAT_MSG = "Invalid format '{mimetype}' for asset {asset_id}"
exception InvalidFormat {
1: types.AssetID asset_id
2: types.Mimetype mimetype
}
exception UnsupportedConversion {}
exception InvalidConversionInfo {}