001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions Copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2013-2014 Manuel Gaupp 015 * Portions Copyright 2014 ForgeRock AS. 016 */ 017package org.opends.server.protocols.asn1; 018 019 020 021import org.forgerock.i18n.LocalizableMessage; 022import org.opends.server.types.IdentifiedException; 023 024 025 026/** 027 * This class defines an exception that may be thrown if a problem occurs while 028 * interacting with a GSER String. 029 */ 030public final class GSERException 031 extends IdentifiedException 032{ 033 /** 034 * The serial version identifier required to satisfy the compiler because this 035 * class extends <CODE>java.lang.Exception</CODE>, which implements the 036 * <CODE>java.io.Serializable</CODE> interface. This value was generated 037 * using the <CODE>serialver</CODE> command-line utility included with the 038 * Java SDK. 039 */ 040 private static final long serialVersionUID = 3655637382448481369L; 041 042 043 044 /** 045 * Creates a new GSER exception with the provided message. 046 * 047 * @param message The message that explains the problem that occurred. 048 */ 049 public GSERException(LocalizableMessage message) 050 { 051 super(message); 052 } 053 054 055 056 /** 057 * Creates a new GSER exception with the provided message and root 058 * cause. 059 * 060 * @param message The message that explains the problem that occurred. 061 * @param cause The exception that was caught to trigger this exception. 062 */ 063 public GSERException(LocalizableMessage message, Throwable cause) 064 { 065 super(message, cause); 066 } 067} 068