Skip to content

Commit 3f4204b

Browse files
DaanHooglandsebgoa
authored andcommitted
CLOUDSTACK-3096 format cloudstackException.py
1 parent 34fc209 commit 3f4204b

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

‎tools/marvin/marvin/cloudstackException.py‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,44 @@
55
# to you under the Apache License, Version 2.0 (the
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
8-
#
8+
#
99
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
10+
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
1819
class cloudstackAPIException(Exception):
19-
def __init__(self, cmd = "", result = ""):
20-
self.errorMsg = "Execute cmd: %s failed, due to: %s"%(cmd, result)
20+
def __init__(self, cmd="", result=""):
21+
self.errorMsg = "Execute cmd: %s failed, due to: %s" % (cmd, result)
22+
2123
def __str__(self):
2224
return self.errorMsg
23-
25+
26+
2427
class InvalidParameterException(Exception):
2528
def __init__(self, msg=''):
2629
self.errorMsg = msg
30+
2731
def __str__(self):
2832
return self.errorMsg
29-
33+
34+
3035
class dbException(Exception):
3136
def __init__(self, msg=''):
3237
self.errorMsg = msg
38+
3339
def __str__(self):
3440
return self.errorMsg
35-
41+
42+
3643
class internalError(Exception):
3744
def __init__(self, msg=''):
3845
self.errorMsg = msg
46+
3947
def __str__(self):
4048
return self.errorMsg

0 commit comments

Comments
 (0)