#region Apache License // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #endregion using System; #if !NETCF using System.Runtime.Serialization; #endif namespace log4net.Core { /// /// Exception base type for log4net. /// /// /// /// This type extends . It /// does not add any new functionality but does differentiate the /// type of exception being thrown. /// /// /// Nicko Cadell /// Gert Driesen #if !NETCF [Serializable] #endif public class LogException : ApplicationException { #region Public Instance Constructors /// /// Constructor /// /// /// /// Initializes a new instance of the class. /// /// public LogException() { } /// /// Constructor /// /// A message to include with the exception. /// /// /// Initializes a new instance of the class with /// the specified message. /// /// public LogException(String message) : base(message) { } /// /// Constructor /// /// A message to include with the exception. /// A nested exception to include. /// /// /// Initializes a new instance of the class /// with the specified message and inner exception. /// /// public LogException(String message, Exception innerException) : base(message, innerException) { } #endregion Public Instance Constructors #region Protected Instance Constructors #if !NETCF /// /// Serialization constructor /// /// The that holds the serialized object data about the exception being thrown. /// The that contains contextual information about the source or destination. /// /// /// Initializes a new instance of the class /// with serialized data. /// /// protected LogException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endif #endregion Protected Instance Constructors } }