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

Method pgRespErrorNotify

web/pgadmin/static/js/helpers/Notifier.jsx:116–125  ·  view source on GitHub ↗
(error, prefixMsg='')

Source from the content-addressed store, hash-verified

114 }
115
116 pgRespErrorNotify(error, prefixMsg='') {
117 if (error.response?.status === 410) {
118 this.alertText(
119 gettext('Error: Object not found - %s.', error.response.statusText),
120 parseApiError(error)
121 );
122 } else {
123 this.errorText(prefixMsg + ' ' + parseApiError(error));
124 }
125 }
126
127 pgNotifier(type, error, promptmsg, onJSONResult) {
128 let msg;

Callers 15

server.jsFile · 0.80
fetch_connection_statusFunction · 0.80
disconnectFunction · 0.80
pga_job.jsFile · 0.80
disconnectFunction · 0.80
enableFunction · 0.80
disableFunction · 0.80
runFunction · 0.80
enableFunction · 0.80
disableFunction · 0.80

Calls 4

alertTextMethod · 0.95
errorTextMethod · 0.95
parseApiErrorFunction · 0.90
gettextFunction · 0.85

Tested by

no test coverage detected