1 /* 2 * Copyright 2012-2013 smartics, Kronseder & Reiner GmbH 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package de.smartics.maven.issue.command; 17 18 /** 19 * Signals problems encountered while executing a command preventing a valid 20 * {@link CommandResult}. 21 */ 22 public class CommandException extends RuntimeException 23 { 24 // ********************************* Fields ********************************* 25 26 // --- constants ------------------------------------------------------------ 27 28 /** 29 * The class version identifier. 30 * <p> 31 * The value of this constant is {@value}. 32 */ 33 private static final long serialVersionUID = 1L; 34 35 // --- members -------------------------------------------------------------- 36 37 // ****************************** Initializer ******************************* 38 39 // ****************************** Constructors ****************************** 40 41 /** 42 * Convenience constructor without a cause. 43 * 44 * @param message the detail message (which is saved for later retrieval by 45 * the {@link #getMessage()} method). 46 */ 47 public CommandException(final String message) 48 { 49 this(message, null); 50 } 51 52 /** 53 * Default constructor. 54 * 55 * @param message the detail message (which is saved for later retrieval by 56 * the {@link #getMessage()} method). 57 * @param cause the cause (which is saved for later retrieval by the 58 * {@link #getCause()} method). (A <tt>null</tt> value is permitted, 59 * and indicates that the cause is nonexistent or unknown.) 60 * @see java.lang.RuntimeException#RuntimeException(java.lang.String, 61 * java.lang.Throwable) 62 */ 63 public CommandException(final String message, final Throwable cause) 64 { 65 super(message, cause); 66 } 67 68 // ****************************** Inner Classes ***************************** 69 70 // ********************************* Methods ******************************** 71 72 // --- init ----------------------------------------------------------------- 73 74 // --- get&set -------------------------------------------------------------- 75 76 // --- business ------------------------------------------------------------- 77 78 // --- object basics -------------------------------------------------------- 79 80 }