init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
22
Kreta.BusinessLogic/Exceptions/CannotBeDeletedException.cs
Normal file
22
Kreta.BusinessLogic/Exceptions/CannotBeDeletedException.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using Kreta.Framework;
|
||||
using Kreta.Framework.Logging;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[LogLevel(LogLevel.WARNING)]
|
||||
public class CannotBeDeletedException : KretaException
|
||||
{
|
||||
public CannotBeDeletedException()
|
||||
: base(StringResourcesUtil.GetString(3272)/*A rekord nem törölhető, létező kapcsolatai miatt.*/, null)
|
||||
{
|
||||
}
|
||||
public CannotBeDeletedException(string message)
|
||||
|
||||
: base(message, null)
|
||||
{
|
||||
SetValue("0", message);
|
||||
}
|
||||
}
|
||||
}
|
21
Kreta.BusinessLogic/Exceptions/CannotBeInsertedException.cs
Normal file
21
Kreta.BusinessLogic/Exceptions/CannotBeInsertedException.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using Kreta.Framework;
|
||||
using Kreta.Framework.Logging;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[LogLevel(LogLevel.WARNING)]
|
||||
public class CannotBeInsertedException : KretaException
|
||||
{
|
||||
public CannotBeInsertedException()
|
||||
: base(StringResourcesUtil.GetString(3154)/*Az új érték létrehozása nem hajtható végre, mert az értékhalmazára már létezik hivatkozás.*/, null)
|
||||
{
|
||||
}
|
||||
|
||||
public CannotBeInsertedException(string message)
|
||||
: base(message, null)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
16
Kreta.BusinessLogic/Exceptions/CannotBeModifiedException.cs
Normal file
16
Kreta.BusinessLogic/Exceptions/CannotBeModifiedException.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using Kreta.Framework;
|
||||
using Kreta.Framework.Logging;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[LogLevel(Kreta.Framework.Logging.LogLevel.WARNING)]
|
||||
public class CannotBeModifiedException : KretaException
|
||||
{
|
||||
public CannotBeModifiedException()
|
||||
: base(StringResourcesUtil.GetString(3152)/*A módosítás nem hajtható végre, mert a módosítandó értékre már létezik hivatkozás.*/, null)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
using Kreta.Framework;
|
||||
using Kreta.Framework.Localization;
|
||||
using Kreta.Framework.Logging;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[FriendlyName(3307, "{0}")]
|
||||
[LogLevel(Kreta.Framework.Logging.LogLevel.WARNING)]
|
||||
public class GeneralErrorMessageException : KretaException
|
||||
{
|
||||
public GeneralErrorMessageException(string Field)
|
||||
: base("GeneralErrorMessage", null)
|
||||
{
|
||||
SetValue("0", Field);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
public class KretaInvalidFileFormatException : Exception
|
||||
{
|
||||
public KretaInvalidFileFormatException()
|
||||
{
|
||||
|
||||
}
|
||||
public KretaInvalidFileFormatException(string message)
|
||||
{
|
||||
messsageText = message;
|
||||
}
|
||||
|
||||
public KretaInvalidFileFormatException(string message, string link)
|
||||
{
|
||||
messsageText = message;
|
||||
linkUrl = link;
|
||||
}
|
||||
private string messsageText { get; set; }
|
||||
|
||||
private string linkUrl { get; set; }
|
||||
|
||||
public override string Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.messsageText;
|
||||
}
|
||||
|
||||
}
|
||||
public string GuideLink
|
||||
{
|
||||
get
|
||||
{
|
||||
return linkUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
public class KretaJelszoModositasException : KretaException
|
||||
{
|
||||
public KretaJelszoModositasException(string message) : base(message) { }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using Kreta.Enums;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
public class KretaMissingSystemSettingException : KretaException
|
||||
{
|
||||
public KretaMissingSystemSettingException(RendszerBeallitasTipusEnum missingSetting)
|
||||
{
|
||||
this.MissingSetting = missingSetting;
|
||||
}
|
||||
public RendszerBeallitasTipusEnum MissingSetting { get; set; }
|
||||
}
|
||||
}
|
22
Kreta.BusinessLogic/Exceptions/PosszeidonIktatasException.cs
Normal file
22
Kreta.BusinessLogic/Exceptions/PosszeidonIktatasException.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using Kreta.Framework;
|
||||
using Kreta.Framework.Logging;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[LogLevel(LogLevel.WARNING)]
|
||||
public class PosszeidonIktatasException : KretaException
|
||||
{
|
||||
public PosszeidonIktatasException()
|
||||
: base(StringResourcesUtil.GetString(4198)/*Hiba történt a dokumentum iktatása közben.*/, null)
|
||||
{
|
||||
}
|
||||
public PosszeidonIktatasException(string message)
|
||||
|
||||
: base(message, null)
|
||||
{
|
||||
SetValue("0", message);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
using Kreta.Framework;
|
||||
using Kreta.Framework.Logging;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.Exceptions
|
||||
{
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[LogLevel(LogLevel.WARNING)]
|
||||
public class PoszeidonbanSztornozvaException : KretaException
|
||||
{
|
||||
public PoszeidonbanSztornozvaException(string message)
|
||||
: base(message, null)
|
||||
{
|
||||
SetValue("0", message);
|
||||
}
|
||||
}
|
||||
}
|
55
Kreta.BusinessLogic/Exceptions/UserNameExistsException.cs
Normal file
55
Kreta.BusinessLogic/Exceptions/UserNameExistsException.cs
Normal file
|
@ -0,0 +1,55 @@
|
|||
using Kreta.Framework;
|
||||
using Kreta.Framework.Localization;
|
||||
using Kreta.Framework.Logging;
|
||||
using Kreta.KretaServer.Exceptions;
|
||||
|
||||
namespace Kreta.BusinessLogic.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.DEVELOPER_DEFINIED)]
|
||||
[FriendlyName(3307, "{0}")]
|
||||
[LogLevel(Kreta.Framework.Logging.LogLevel.WARNING)]
|
||||
public class UserNameExistsException : KretaException
|
||||
{
|
||||
public UserNameExistsException(string Field)
|
||||
: base(StringResourcesUtil.GetString(3149)/*A felhasználónév már foglalt: {0}*/, null)
|
||||
{
|
||||
SetValue("0", Field);
|
||||
}
|
||||
}
|
||||
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[FriendlyName(3307, "{0}")]
|
||||
[LogLevel(Kreta.Framework.Logging.LogLevel.WARNING)]
|
||||
public class OktatasiAzonositoExistsException : KretaException
|
||||
{
|
||||
public OktatasiAzonositoExistsException(string Field)
|
||||
: base(StringResourcesUtil.GetString(3797)/*Az oktatási azonosító már foglalt: {0}*/, null)
|
||||
{
|
||||
SetValue("0", Field);
|
||||
}
|
||||
}
|
||||
|
||||
[ErrorCode(Events.DEVELOPER_DEFINIED)]
|
||||
[FriendlyName(3307, "{0}")]
|
||||
[LogLevel(Kreta.Framework.Logging.LogLevel.WARNING)]
|
||||
public class Check4TValidacioExistsException : KretaException
|
||||
{
|
||||
public Check4TValidacioExistsException(string Field)
|
||||
: base(StringResourcesUtil.GetString(3766)/*A név, anyja neve, születési hely és idő adatok alapján a rendszerben már található tanuló. Újrarögzítés nem lehetséges!*/, null)
|
||||
{
|
||||
SetValue("0", Field);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue