Java tutorial
/* * Copyright 2007-2012 Jiemamy Project and the Others. * Created on 2008/12/01 * * This file is part of Jiemamy. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.jiemamy; import org.apache.commons.lang.SystemUtils; /** * ????Jiemamy???????? * * <ul> * <li><a href="http://d.hatena.ne.jp/daisuke-m/20081201/1228095493">?1</a></li> * <li><a href="http://d.hatena.ne.jp/daisuke-m/20081202/1228221927">?2</a></li> * </ul> * * <p>???????<a href="http://jira.jiemamy.org">Jiemamy Project??</a>???????</p> * * @version $Id$ * @author daisuke */ @SuppressWarnings("serial") public class JiemamyError extends Error { /** * ?Jiemamy?????? */ private static final String GUIDE_PREFIX = "Jiemamy internal error : "; /** * Jiemamy?????JIRA????????????? */ private static final String GUIDE_SUFFIX = SystemUtils.LINE_SEPARATOR + " - This is a Jiemamy bug. Please make a ticket on our issue tracker (http://jira.jiemamy.org)."; /** * ?? * * @param message ????????????????? */ public JiemamyError(String message) { this(message, null); } /** * ?? * * @param message ????????????????? * @param cause */ public JiemamyError(String message, Throwable cause) { super(GUIDE_PREFIX + message + GUIDE_SUFFIX, cause); } }