|
1 | | -# Copyright 2016-2017, Optimizely |
2 | | -# Licensed under the Apache License, Version 2.0 (the "License"); |
3 | | -# you may not use this file except in compliance with the License. |
4 | | -# You may obtain a copy of the License at |
5 | | -# |
6 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
7 | | -# |
8 | | -# Unless required by applicable law or agreed to in writing, software |
9 | | -# distributed under the License is distributed on an "AS IS" BASIS, |
10 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
11 | | -# See the License for the specific language governing permissions and |
12 | | -# limitations under the License. |
13 | | - |
14 | | - |
15 | | -class InvalidAttributeException(Exception): |
16 | | - """ Raised when provided attribute is invalid. """ |
17 | | - pass |
18 | | - |
19 | | - |
20 | | -class InvalidAudienceException(Exception): |
21 | | - """ Raised when provided audience is invalid. """ |
22 | | - pass |
23 | | - |
24 | | - |
25 | | -class InvalidEventTagException(Exception): |
26 | | - """ Raised when provided event tag is invalid. """ |
27 | | - pass |
28 | | - |
29 | | - |
30 | | -class InvalidExperimentException(Exception): |
31 | | - """ Raised when provided experiment key is invalid. """ |
32 | | - pass |
33 | | - |
34 | | - |
35 | | -class InvalidEventException(Exception): |
36 | | - """ Raised when provided event key is invalid. """ |
37 | | - pass |
38 | | - |
39 | | - |
40 | | -class InvalidGroupException(Exception): |
41 | | - """ Raised when provided group ID is invalid. """ |
42 | | - pass |
43 | | - |
44 | | - |
45 | | -class InvalidInputException(Exception): |
46 | | - """ Raised when provided datafile, event dispatcher, logger or error handler is invalid. """ |
47 | | - pass |
48 | | - |
49 | | - |
50 | | -class InvalidVariationException(Exception): |
51 | | - """ Raised when provided variation is invalid. """ |
52 | | - pass |
| 1 | +# Copyright 2016-2018, Optimizely |
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | +# you may not use this file except in compliance with the License. |
| 4 | +# You may obtain a copy of the License at |
| 5 | +# |
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | + |
| 14 | + |
| 15 | +class InvalidAttributeException(Exception): |
| 16 | + """ Raised when provided attribute is invalid. """ |
| 17 | + pass |
| 18 | + |
| 19 | + |
| 20 | +class InvalidAudienceException(Exception): |
| 21 | + """ Raised when provided audience is invalid. """ |
| 22 | + pass |
| 23 | + |
| 24 | + |
| 25 | +class InvalidEventException(Exception): |
| 26 | + """ Raised when provided event key is invalid. """ |
| 27 | + pass |
| 28 | + |
| 29 | + |
| 30 | +class InvalidEventTagException(Exception): |
| 31 | + """ Raised when provided event tag is invalid. """ |
| 32 | + pass |
| 33 | + |
| 34 | + |
| 35 | +class InvalidExperimentException(Exception): |
| 36 | + """ Raised when provided experiment key is invalid. """ |
| 37 | + pass |
| 38 | + |
| 39 | + |
| 40 | +class InvalidGroupException(Exception): |
| 41 | + """ Raised when provided group ID is invalid. """ |
| 42 | + pass |
| 43 | + |
| 44 | + |
| 45 | +class InvalidInputException(Exception): |
| 46 | + """ Raised when provided datafile, event dispatcher, logger or error handler is invalid. """ |
| 47 | + pass |
| 48 | + |
| 49 | + |
| 50 | +class InvalidVariationException(Exception): |
| 51 | + """ Raised when provided variation is invalid. """ |
| 52 | + pass |
| 53 | + |
| 54 | + |
| 55 | +class UnsupportedDatafileVersionException(Exception): |
| 56 | + """ Raised when provided version in datafile is not supported. """ |
| 57 | + pass |
0 commit comments