-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from perfectsense/feature/batch-refresh
Batch Refresh
- Loading branch information
Showing
4 changed files
with
187 additions
and
64 deletions.
There are no files selected for viewing
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
39 changes: 39 additions & 0 deletions
39
core/src/main/java/gyro/core/resource/RefreshException.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,39 @@ | ||
package gyro.core.resource; | ||
|
||
public class RefreshException extends RuntimeException { | ||
|
||
private Resource resource; | ||
|
||
public RefreshException(Resource resource) { | ||
this.resource = resource; | ||
} | ||
|
||
public RefreshException(String message, Resource resource) { | ||
super(message); | ||
this.resource = resource; | ||
} | ||
|
||
public RefreshException(String message, Throwable cause, Resource resource) { | ||
super(message, cause); | ||
this.resource = resource; | ||
} | ||
|
||
public RefreshException(Throwable cause, Resource resource) { | ||
super(cause); | ||
this.resource = resource; | ||
} | ||
|
||
public RefreshException( | ||
String message, | ||
Throwable cause, | ||
boolean enableSuppression, | ||
boolean writableStackTrace, | ||
Resource resource) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
this.resource = resource; | ||
} | ||
|
||
public Resource getResource() { | ||
return resource; | ||
} | ||
} |
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