CommandExecutionException.java

  1. // SECTION-START[License Header]
  2. // <editor-fold defaultstate="collapsed" desc=" Generated License ">
  3. /*
  4.  * Java Object Management and Configuration
  5.  * Copyright (C) Christian Schulte <cs@schulte.it>, 2005-206
  6.  * All rights reserved.
  7.  *
  8.  * Redistribution and use in source and binary forms, with or without
  9.  * modification, are permitted provided that the following conditions
  10.  * are met:
  11.  *
  12.  *   o Redistributions of source code must retain the above copyright
  13.  *     notice, this list of conditions and the following disclaimer.
  14.  *
  15.  *   o Redistributions in binary form must reproduce the above copyright
  16.  *     notice, this list of conditions and the following disclaimer in
  17.  *     the documentation and/or other materials provided with the
  18.  *     distribution.
  19.  *
  20.  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  21.  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  22.  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  23.  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
  24.  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  25.  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  27.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  29.  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30.  *
  31.  * $JOMC: CommandExecutionException.java 5061 2015-05-31 13:20:40Z schulte $
  32.  *
  33.  */
  34. // </editor-fold>
  35. // SECTION-END
  36. package org.jomc.cli.commands;

  37. // SECTION-START[Documentation]
  38. // <editor-fold defaultstate="collapsed" desc=" Generated Documentation ">
  39. /**
  40.  * Command execution exception.
  41.  *
  42.  * <dl>
  43.  *   <dt><b>Identifier:</b></dt><dd>JOMC ⁑ CLI ⁑ Command Execution Exception</dd>
  44.  *   <dt><b>Name:</b></dt><dd>JOMC ⁑ CLI ⁑ Command Execution Exception</dd>
  45.  *   <dt><b>Abstract:</b></dt><dd>No</dd>
  46.  *   <dt><b>Final:</b></dt><dd>No</dd>
  47.  *   <dt><b>Stateless:</b></dt><dd>No</dd>
  48.  * </dl>
  49.  *
  50.  * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 1.0
  51.  * @version 1.9
  52.  */
  53. // </editor-fold>
  54. // SECTION-END
  55. // SECTION-START[Annotations]
  56. // <editor-fold defaultstate="collapsed" desc=" Generated Annotations ">
  57. @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
  58. // </editor-fold>
  59. // SECTION-END
  60. public class CommandExecutionException extends Exception
  61. {
  62.     // SECTION-START[CommandExecutionException]

  63.     /**
  64.      * Serial version UID for backwards compatibility with 1.2 object streams.
  65.      */
  66.     private static final long serialVersionUID = 5113160867045764410L;

  67.     /**
  68.      * Creates a new {@code CommandExecutionException} taking a message.
  69.      *
  70.      * @param message A message describing the exception.
  71.      */
  72.     public CommandExecutionException( final String message )
  73.     {
  74.         this( message, null );
  75.     }

  76.     /**
  77.      * Creates a new {@code CommandExecutionException} taking a causing throwable.
  78.      *
  79.      * @param throwable A throwable causing the exception.
  80.      */
  81.     public CommandExecutionException( final Throwable throwable )
  82.     {
  83.         this( null, throwable );
  84.     }

  85.     /**
  86.      * Creates a new {@code CommandExecutionException} taking a message and a causing throwable.
  87.      *
  88.      * @param message A message describing the exception.
  89.      * @param throwable A throwable causing the exception.
  90.      */
  91.     public CommandExecutionException( final String message, final Throwable throwable )
  92.     {
  93.         super( message, throwable );
  94.     }

  95.     // SECTION-END
  96.     // SECTION-START[Constructors]
  97.     // <editor-fold defaultstate="collapsed" desc=" Generated Constructors ">
  98.     /** Creates a new {@code CommandExecutionException} instance. */
  99.     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
  100.     public CommandExecutionException()
  101.     {
  102.         // SECTION-START[Default Constructor]
  103.         super();
  104.         // SECTION-END
  105.     }
  106.     // </editor-fold>
  107.     // SECTION-END
  108.     // SECTION-START[Dependencies]
  109.     // SECTION-END
  110.     // SECTION-START[Properties]
  111.     // SECTION-END
  112.     // SECTION-START[Messages]
  113.     // SECTION-END

  114. }