001    /*
002     * Copyright (C) 2010 Evgeny Mandrikov
003     *
004     * Sonar-IDE is free software; you can redistribute it and/or
005     * modify it under the terms of the GNU Lesser General Public
006     * License as published by the Free Software Foundation; either
007     * version 3 of the License, or (at your option) any later version.
008     *
009     * Sonar-IDE is distributed in the hope that it will be useful,
010     * but WITHOUT ANY WARRANTY; without even the implied warranty of
011     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012     * Lesser General Public License for more details.
013     *
014     * You should have received a copy of the GNU Lesser General Public
015     * License along with Sonar-IDE; if not, write to the Free Software
016     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
017     */
018    
019    package org.sonar.ide.api;
020    
021    /**
022     * Runtime exception.
023     * Good practice is to always specify detail message for exception,
024     * so there is no constructors without parameter "message".
025     * 
026     * @author Evgeny Mandrikov
027     */
028    public class SonarIdeException extends RuntimeException {
029    
030      private static final long serialVersionUID = 5153419702918423973L;
031    
032      /**
033       * Constructs a new runtime exception with the specified detail message.
034       * 
035       * @param message
036       *          the detail message
037       */
038      public SonarIdeException(String message) {
039        super(message);
040      }
041    
042      /**
043       * Constructs a new runtime exception with the specified detail message and cause.
044       * 
045       * @param message
046       *          the detail message
047       * @param cause
048       *          the cause
049       */
050      public SonarIdeException(String message, Throwable cause) {
051        super(message, cause);
052      }
053    }