/*
This software is subject to the license described in the License.txt file
included with this software distribution. You may not use this file except in compliance
with this license.
Copyright (c) Dynastream Innovations Inc. 2013
All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ANT_Managed_Library
{
///
/// An exception occuring in the ANT Managed Library
///
[Serializable]
public class ANT_Exception: Exception
{
///
/// Prefixes given string with "ANTLibrary Exception: "
///
/// String to prefix
public ANT_Exception(String exceptionDetail) : base("ANTLibrary Exception: " + exceptionDetail) { }
///
/// Prefixes given string with "ANTLibrary Exception: " and propates inner exception
///
/// String to prefix
/// Inner exception
public ANT_Exception(String exceptionDetail, Exception innerException) : base("ANTLibrary Exception: " + exceptionDetail, innerException) { }
///
/// Copy constructor
///
/// ANTException to copy
public ANT_Exception(ANT_Exception aex) : base(aex.Message) { } //C++ exceptions like to have a copy constructor
}
}