1 # Copyright 2010 Google Inc.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
19 # An error which is raised when there is an unexpected response or other
20 # transport error that prevents an operation from succeeding.
21 class TransmissionError < StandardError
25 # An exception that is raised if a method is called with missing or
26 # invalid parameter values.
27 class ValidationError < StandardError
31 # A 4xx class HTTP error occurred.
32 class ClientError < TransmissionError
36 # A 5xx class HTTP error occurred.
37 class ServerError < TransmissionError
41 # An exception that is raised if an ID token could not be validated.
42 class InvalidIDTokenError < StandardError
45 # Error class for problems in batch requests.
46 class BatchError < StandardError