001 /* 002 * Copyright 2007-2016 UnboundID Corp. 003 * All Rights Reserved. 004 */ 005 /* 006 * Copyright (C) 2008-2016 UnboundID Corp. 007 * 008 * This program is free software; you can redistribute it and/or modify 009 * it under the terms of the GNU General Public License (GPLv2 only) 010 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) 011 * as published by the Free Software Foundation. 012 * 013 * This program is distributed in the hope that it will be useful, 014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 016 * GNU General Public License for more details. 017 * 018 * You should have received a copy of the GNU General Public License 019 * along with this program; if not, see <http://www.gnu.org/licenses>. 020 */ 021 package com.unboundid.asn1; 022 023 024 025 import com.unboundid.util.LDAPSDKException; 026 027 028 029 /** 030 * This class defines an exception that can be thrown if a problem occurs while 031 * interacting with ASN.1 BER elements. 032 */ 033 public final class ASN1Exception 034 extends LDAPSDKException 035 { 036 /** 037 * The serial version UID for this serializable class. 038 */ 039 private static final long serialVersionUID = 3234714599495723483L; 040 041 042 043 /** 044 * Creates a new ASN.1 exception with the provided message. 045 * 046 * @param message A message explaining the problem that occurred. 047 */ 048 public ASN1Exception(final String message) 049 { 050 super(message); 051 } 052 053 054 055 /** 056 * Creates a new ASN.1 exception with the provided message and cause. 057 * 058 * @param message A message explaining the problem that occurred. 059 * @param cause The underlying cause for this exception. 060 */ 061 public ASN1Exception(final String message, final Throwable cause) 062 { 063 super(message, cause); 064 } 065 }