init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
40
Kreta.KretaServer/Exceptions/KretaException.cs
Normal file
40
Kreta.KretaServer/Exceptions/KretaException.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using Kreta.Framework;
|
||||
using Kreta.Framework.Localization;
|
||||
using Kreta.Framework.Logging;
|
||||
|
||||
namespace Kreta.KretaServer.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Ez az osztály a Neptun kivételek ososztálya, minden Neptun kivételt
|
||||
/// ebbol az osztályból kell származtatni.
|
||||
/// A leszármaztatás során fel kell venni minden nyelven a ClientMessage attribútumot,
|
||||
/// mert ezt az üzenetet kapja meg a kliens. A kliens megkapja továbbá a ClientErrorCode
|
||||
/// attribútum értékét is.
|
||||
///
|
||||
/// Lehet használni az Kreta.Framework.Logging.LogParameter -ben lévo paramétereket is, ezeket
|
||||
/// az m_Parameters-be kell berakni a konstruktorban. Példák a Framework/Util/Exceptions.cs fájlban
|
||||
/// találhatóak.
|
||||
/// </summary>
|
||||
[ErrorCode(Events.NEPTUN_GENERAL)]
|
||||
[FriendlyName(3051, "Ismeretlen Kréta rendszerbeli hiba.")]
|
||||
[LogLevel(LogLevel.WARNING)]
|
||||
public class KretaException : FrameworkException
|
||||
{
|
||||
public KretaException()
|
||||
: this("General business logic error.")
|
||||
{
|
||||
}
|
||||
|
||||
public KretaException(string message)
|
||||
: this(message, null)
|
||||
{
|
||||
}
|
||||
|
||||
public KretaException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue