Back to project page Dumbledroid.
The source code is released under:
Copyright (c) 2013, Leocadio Tin? All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project Dumbledroid 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 io.leocad.dumbledroidplugin.exceptions; //from ww w . jav a 2 s. c om public class InvalidContentException extends Exception { private static final long serialVersionUID = 8125988022163808304L; private String mContentType; public InvalidContentException(String contentType) { mContentType = contentType; } @Override public String getMessage() { return String.format("The provided '%s' is invalid or corrupted. Please validate it here: %s", mContentType, getValidationUrl()); } private String getValidationUrl() { return mContentType.toLowerCase().equals("json")? "http://jsonlint.com/": "http://www.w3schools.com/xml/xml_validator.asp"; } }