Skip to content

Commit

Permalink
fix: makes exceptions public so others can import and handle them
Browse files Browse the repository at this point in the history
  • Loading branch information
julianSelser committed Jan 6, 2023
1 parent 240c26b commit 2f4a171
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -34,7 +34,7 @@
import java.io.IOException;

/** Indicates that the provided credential does not adhere to the required format. */
class CredentialFormatException extends IOException {
public class CredentialFormatException extends IOException {
CredentialFormatException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
Expand Up @@ -39,7 +39,7 @@
* Base class for the standard Auth error response. It extends a default exception while keeping
* Json response format
*/
class GoogleAuthException extends IOException implements Retryable {
public class GoogleAuthException extends IOException implements Retryable {

private final boolean isRetryable;
private final int retryCount;
Expand Down
Expand Up @@ -39,7 +39,7 @@
* Encapsulates the standard OAuth error response. See
* https://tools.ietf.org/html/rfc6749#section-5.2.
*/
class OAuthException extends GoogleAuthException {
public class OAuthException extends GoogleAuthException {

private final String errorCode;
@Nullable private final String errorDescription;
Expand Down
Expand Up @@ -34,7 +34,7 @@
import static com.google.common.base.Preconditions.checkNotNull;

/** Encapsulates the error response's for 3rd party executables defined by the executable spec. */
class PluggableAuthException extends OAuthException {
public class PluggableAuthException extends OAuthException {

PluggableAuthException(String errorCode, String errorDescription) {
super(errorCode, checkNotNull(errorDescription), /* errorUri=*/ null);
Expand Down

0 comments on commit 2f4a171

Please sign in to comment.