Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: makes exceptions public so others can import and handle them #1124

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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