
com.adobe.aem.formsndocuments.exception.FormsNDocumentsException Maven / Gradle / Ivy
/***************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2013 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/
package com.adobe.aem.formsndocuments.exception;
import java.util.ResourceBundle;
import com.adobe.aemforms.fm.exception.FormsMgrException;
/**
* FormsNDocumentsException class is responsible for mapping of the error codes
* and messages for Form Manager exceptions.
*
* @author sakarora
*
*/
public class FormsNDocumentsException extends FormsMgrException {
private static final long serialVersionUID = -3754148495097576810L;
public static final String ERROR_AEM_FMG_700_001 = "AEM-FMG-700-001";
public static final String ERROR_AEM_FMG_700_002 = "AEM-FMG-700-002";
public static final String ERROR_AEM_FMG_700_003 = "AEM-FMG-700-003";
public static final String ERROR_AEM_FMG_700_004 = "AEM-FMG-700-004";
public static final String ERROR_AEM_FMG_700_005 = "AEM-FMG-700-005";
public static final String ERROR_AEM_FMG_700_006 = "AEM-FMG-700-006";
public static final String ERROR_AEM_FMG_700_007 = "AEM-FMG-700-007";
public static final String ERROR_AEM_FMG_700_008 = "AEM-FMG-700-008";
public static final String ERROR_AEM_FMG_700_009 = "AEM-FMG-700-009";
public static final String ERROR_AEM_FMG_700_010 = "AEM-FMG-700-010";
public static final String ERROR_AEM_FMG_700_011 = "AEM-FMG-700-011";
public static final String ERROR_AEM_FMG_700_012 = "AEM-FMG-700-012";
public static final String ERROR_AEM_FMG_700_013 = "AEM-FMG-700-013";
public static final String ERROR_AEM_FMG_700_014 = "AEM-FMG-700-014";
public static final String ERROR_AEM_FMG_700_015 = "AEM-FMG-700-015";
public static final String ERROR_AEM_FMG_700_016 = "AEM-FMG-700-016";
public static final String ERROR_AEM_FMG_700_017 = "AEM-FMG-700-017";
public static final String ERROR_AEM_FMG_700_018 = "AEM-FMG-700-018";
public static final String ERROR_AEM_FMG_700_019 = "AEM-FMG-700-019";
public static final String ERROR_AEM_FMG_700_020 = "AEM-FMG-700-020";
public static final String ERROR_AEM_FMG_700_021 = "AEM-FMG-700-021";
public static final String ERROR_AEM_FMG_700_022 = "AEM-FMG-700-022";
public static final String ERROR_AEM_FMG_700_023 = "AEM-FMG-700-023";
public static final String ERROR_AEM_FMG_700_024 = "AEM-FMG-700-024";
public static final String ERROR_AEM_FMG_700_025 = "AEM-FMG-700-025";
/**
* Default constructor.
*/
public FormsNDocumentsException() {
super();
}
public FormsNDocumentsException(String code, Object[] args) {
super(code, args, ResourceBundle.getBundle("errorMessages"));
}
public FormsNDocumentsException(String message) {
super(message);
}
public FormsNDocumentsException(Throwable cause) {
super(cause);
if (cause instanceof Exception) {
Exception e = (Exception) cause;
if (e instanceof FormsNDocumentsException) {
FormsNDocumentsException fde = (FormsNDocumentsException) e;
this.code = fde.getCode();
this.message = fde.getMessage();
this.messageArgs = fde.getMessageArgs();
} else {
this.message = cause.getMessage();
}
}
}
public FormsNDocumentsException(String message, Throwable cause) {
super(message, cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy