mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
GUACAMOLE-611: Handle sublasses of Error in addition to RuntimeException.
This commit is contained in:
@@ -222,6 +222,19 @@ public class AuthenticationProviderFacade implements AuthenticationProvider {
|
|||||||
throw e;
|
throw e;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
catch (Error e) {
|
||||||
|
|
||||||
|
// Skip using this authentication provider if configured to ignore
|
||||||
|
// internal failures during auth
|
||||||
|
if (isFailureTolerated()) {
|
||||||
|
warnAuthProviderSkipped(e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
warnAuthAborted();
|
||||||
|
throw e;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -289,6 +302,19 @@ public class AuthenticationProviderFacade implements AuthenticationProvider {
|
|||||||
throw e;
|
throw e;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
catch (Error e) {
|
||||||
|
|
||||||
|
// Skip using this authentication provider if configured to ignore
|
||||||
|
// internal failures during auth
|
||||||
|
if (isFailureTolerated()) {
|
||||||
|
warnAuthProviderSkipped(e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
warnAuthAborted();
|
||||||
|
throw e;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user