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 #1 from SidneyAllen/marshalling
Add Support for Marshaling & Un-Marshaling XML
- Loading branch information
Showing
173 changed files
with
34,923 additions
and
141 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.xero.api; | ||
|
||
public class XeroApiException extends RuntimeException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private final int responseCode; | ||
|
||
public XeroApiException(int responseCode) { | ||
super(responseCode + " response."); | ||
this.responseCode = responseCode; | ||
} | ||
|
||
public XeroApiException(int responseCode, String message) { | ||
super(responseCode + " response: " + message); | ||
this.responseCode = responseCode; | ||
} | ||
|
||
public int getResponseCode() { | ||
return responseCode; | ||
} | ||
|
||
} |
Oops, something went wrong.