EDNA/Edna/Exceptions.cs

79 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// <copyright file="Exceptions.cs" company="alterNERDtive">
// Copyright 20212022 alterNERDtive.
//
// This file is part of EDNA.
//
// EDNA is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// EDNA is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with EDNA. If not, see &lt;https://www.gnu.org/licenses/&gt;.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace alterNERDtive.Edna
{
public class SystemNotFoundException : Exception
{
public SystemNotFoundException(string message)
: base(message)
{
}
}
public class CommanderNotFoundException : Exception
{
public string? Name { get; private set; }
public CommanderNotFoundException()
: base()
{
}
public CommanderNotFoundException(string message)
: base(message)
{
}
public CommanderNotFoundException(string message, Exception innerException)
:base(message, innerException)
{
}
public CommanderNotFoundException(string message, ArgumentException innerException)
: base(message, innerException)
{
this.Name = innerException.ParamName;
}
}
public class CommanderHiddenException : Exception
{
public CommanderHiddenException()
: base()
{
}
public CommanderHiddenException(string message)
: base(message)
{
}
public CommanderHiddenException(string message, Exception innerException)
: base(message, innerException)
{
}
}
}