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

Class ObjectGone

web/pgadmin/utils/exception.py:113–133  ·  view source on GitHub ↗

Exception

Source from the content-addressed store, hash-verified

111
112
113class ObjectGone(HTTPException):
114 """
115 Exception
116 """
117
118 def __init__(self, error_msg):
119 self.error_msg = error_msg
120 HTTPException.__init__(self)
121
122 @property
123 def name(self):
124 return HTTP_STATUS_CODES.get(410, 'Gone')
125
126 def get_response(self, environ=None, scope=None):
127 return gone(self.error_msg)
128
129 def __str__(self):
130 return self.error_msg
131
132 def __repr__(self):
133 return self.error_msg
134
135
136class ExecuteError(HTTPException):

Callers 15

get_sqlFunction · 0.90
get_sqlFunction · 0.90
get_sqlFunction · 0.90
get_sqlFunction · 0.90
get_sqlFunction · 0.90
get_sqlFunction · 0.90
get_sqlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected