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.network; /*from w ww. j ava 2 s . c om*/ import org.restit.model.ServerError; public class ServerErrorException extends Exception { /** * */ private static final long serialVersionUID = -5525943103533374970L; private ServerError error; public ServerErrorException() { } public ServerErrorException(String message) { this.error = new ServerError(message); } public ServerErrorException(ServerError error) { this.error = error; } public ServerErrorException(Exception exception) { this.error = new ServerError(exception); } public ServerError getError() { return error; } public void setError(ServerError error) { this.error = error; } }