MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / ExecuteError

Class ExecuteError

web/pgadmin/utils/exception.py:136–156  ·  view source on GitHub ↗

ExecuteError

Source from the content-addressed store, hash-verified

134
135
136class ExecuteError(HTTPException):
137 """
138 ExecuteError
139 """
140
141 def __init__(self, error_msg):
142 self.error_msg = error_msg
143 HTTPException.__init__(self)
144
145 @property
146 def name(self):
147 return HTTP_STATUS_CODES.get(500, 'Internal server error')
148
149 def get_response(self, environ=None, scope=None):
150 return internal_server_error(self.error_msg)
151
152 def __str__(self):
153 return self.error_msg
154
155 def __repr__(self):
156 return self.error_msg

Callers 15

updateMethod · 0.90
get_parentFunction · 0.90
get_sqlFunction · 0.90
get_parentFunction · 0.90
get_sqlFunction · 0.90
get_parentFunction · 0.90
get_sqlFunction · 0.90
get_parentFunction · 0.90
get_sqlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected