/* **********************************************************
 * Copyright (c) 2019 VMware, Inc.  All rights reserved.
 * -- VMware Confidential
 * **********************************************************/

package com.vmware.samples.connection;

/**
 * Thrown to indicate an error that must be displayed to the user, as it halted
 * normal execution of the application.
 */
public class ApplicationException
   extends java.lang.Exception {
   /**
    * Generated ID for object serialization.
    * @see java.io.Serializable
    */
   private static final long serialVersionUID = 9129849374563969925L;

   /**
    * Constructs a new exception with the specified detail message and cause.
    * <p>
    * Note that the detail message associated with {@code cause} is
    * <em>not</em> automatically incorporated in this exception's detail
    * message.
    *
    * @param msg   the detail message (which is saved for later retrieval by
    *    the {@link Throwable#getMessage()} method.
    * @param cause the cause (which is saved for later retrieval by the
    *    {@link Throwable#getCause()} method).  (A {@code null} value is
    *    permitted, and indicates that the cause is nonexistent or unknown.)
    */
   public ApplicationException(final String msg, final Throwable cause) {
      super(msg, cause);
   }
}

