~ubuntu-branches/ubuntu/vivid/neutron-lbaas/vivid-proposed

« back to all changes in this revision

Viewing changes to neutron_lbaas/drivers/radware/exceptions.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2015-04-10 09:59:17 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20150410095917-rypl8ah3sl41ei1t
Tags: 1:2015.1~rc1-0ubuntu1
* New upstream milestone release:
  - d/control: Align version requirements with upstream.
  - debian/patches/skip-failing-tests.patch: Skipped failing tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2015 Radware LTD.
 
2
#
 
3
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
 
4
#    not use this file except in compliance with the License. You may obtain
 
5
#    a copy of the License at
 
6
#
 
7
#         http://www.apache.org/licenses/LICENSE-2.0
 
8
#
 
9
#    Unless required by applicable law or agreed to in writing, software
 
10
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
11
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
12
#    License for the specific language governing permissions and limitations
 
13
#    under the License.
 
14
 
 
15
 
 
16
from neutron.i18n import _LE
 
17
 
 
18
from neutron_lbaas.common import exceptions
 
19
 
 
20
 
 
21
class RadwareLBaasV2Exception(exceptions.LbaasException):
 
22
    message = _LE('An unknown exception occurred in '
 
23
                  'Radware LBaaS v2 provider.')
 
24
 
 
25
 
 
26
class AuthenticationMissing(RadwareLBaasV2Exception):
 
27
    message = _LE('vDirect user/password missing. '
 
28
                  'Specify in configuration file, under [radwarev2] section')
 
29
 
 
30
 
 
31
class WorkflowTemplateMissing(RadwareLBaasV2Exception):
 
32
    message = _LE('Workflow template %(workflow_template)s is missing '
 
33
                  'on vDirect server. Upload missing workflow')
 
34
 
 
35
 
 
36
class RESTRequestFailure(RadwareLBaasV2Exception):
 
37
    message = _LE('REST request failed with status %(status)s. '
 
38
                  'Reason: %(reason)s, Description: %(description)s. '
 
39
                  'Success status codes are %(success_codes)s')
 
40
 
 
41
 
 
42
class UnsupportedEntityOperation(RadwareLBaasV2Exception):
 
43
    message = _LE('%(operation)s operation is not supported for %(entity)s.')