-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose NetworkErrorException when request fails due to networking
- Loading branch information
1 parent
f6f9f57
commit bfbdc62
Showing
4 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
auth0/src/main/java/com/auth0/android/NetworkErrorException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.auth0.android; | ||
|
||
/** | ||
* Exception that represents a failure caused when attempting to execute a network request | ||
*/ | ||
public class NetworkErrorException extends Auth0Exception { | ||
|
||
public NetworkErrorException(Throwable cause) { | ||
super("Failed to execute the network request", cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters