Back to project page AndroidOperaLink.
The source code is released under:
Apache License
If you think the Android project AndroidOperaLink 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 com.opera.link.apilib.android.exceptions; /*from ww w . j ava 2s .co m*/ public class LibOperaLinkException extends Exception { public static final int BAD_REQUEST = 400; public static final int UNAUTHORIZED = 401; public static final int NOT_FOUND = 404; private static final long serialVersionUID = 1L; public LibOperaLinkException(Exception innerException) { super(); } public LibOperaLinkException(String message) { super(message); } public static void throwCommunicationExeption(int httpStatusCode, Exception innerException) throws LinkItemNotFound, LinkAccessDeniedException, LibOperaLinkException { switch(httpStatusCode) { case NOT_FOUND: throw new LinkItemNotFound(); case UNAUTHORIZED: throw new LinkAccessDeniedException(innerException); } throw new LibOperaLinkException(innerException); } }