Back to project page RestIt.
The source code is released under:
Apache License
If you think the Android project RestIt listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.restit.model; /*from w ww .j av a2 s. c o m*/ public class ServerError { private String message; private int serverCode; private Exception exception; public ServerError() { } public ServerError(String message) { this.message = message; } public ServerError(Exception exception) { if(exception != null) { this.exception = exception; this.message = exception.getMessage(); } } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public int getServerCode() { return serverCode; } public void setServerCode(int serverCode) { this.serverCode = serverCode; } public Exception getException() { return exception; } public void setException(Exception exception) { this.exception = exception; } }