*** empty log message ***
This commit is contained in:
parent
2a0c6a0ad0
commit
f59c6bf601
15 changed files with 3851 additions and 0 deletions
23
ADL.NET/Exceptions/DataFormatException.cs
Executable file
23
ADL.NET/Exceptions/DataFormatException.cs
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/*
|
||||
* Application Description Framework
|
||||
* DataRangeException.cs
|
||||
*
|
||||
* (c) 2007 Cygnet Solutions Ltd
|
||||
*
|
||||
* $Author: af $
|
||||
* $Revision: 1.1 $
|
||||
*/
|
||||
|
||||
namespace ADL.Exceptions {
|
||||
/// <summary>
|
||||
/// An exception to be thrown if an attempt is made to set a property to a
|
||||
/// value which is unsuitably formatted for the data type
|
||||
/// </summary>
|
||||
public class DataFormatException : DataSuitabilityException {
|
||||
public DataFormatException(String message) : base(message) {}
|
||||
}
|
||||
}
|
||||
23
ADL.NET/Exceptions/DataRangeException.cs
Executable file
23
ADL.NET/Exceptions/DataRangeException.cs
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/*
|
||||
* Application Description Framework
|
||||
* DataRangeException.cs
|
||||
*
|
||||
* (c) 2007 Cygnet Solutions Ltd
|
||||
*
|
||||
* $Author: af $
|
||||
* $Revision: 1.1 $
|
||||
*/
|
||||
|
||||
namespace ADL.Exceptions {
|
||||
/// <summary>
|
||||
/// An exception to be thrown if an attempt is made to set a scalar property with a
|
||||
/// defined range to a value which is outside that range
|
||||
/// </summary>
|
||||
public class DataRangeException : DataSuitabilityException {
|
||||
public DataRangeException(String message) : base(message) {}
|
||||
}
|
||||
}
|
||||
21
ADL.NET/Exceptions/DataRequiredException.cs
Executable file
21
ADL.NET/Exceptions/DataRequiredException.cs
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/*
|
||||
* Application Description Framework
|
||||
* DataRequiredException.cs
|
||||
*
|
||||
* (c) 2007 Cygnet Solutions Ltd
|
||||
*
|
||||
* $Author: af $
|
||||
* $Revision: 1.1 $
|
||||
*/
|
||||
namespace ADL.Exceptions {
|
||||
/// <summary>
|
||||
/// An exception to be thrown if an attempt is made to set a required property to null
|
||||
/// </summary>
|
||||
public class DataRequiredException : DataSuitabilityException {
|
||||
public DataRequiredException(String message) : base(message){}
|
||||
}
|
||||
}
|
||||
23
ADL.NET/Exceptions/DataSuitabilityException.cs
Executable file
23
ADL.NET/Exceptions/DataSuitabilityException.cs
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/*
|
||||
* Application Description Framework
|
||||
* DataRangeException.cs
|
||||
*
|
||||
* (c) 2007 Cygnet Solutions Ltd
|
||||
*
|
||||
* $Author: af $
|
||||
* $Revision: 1.1 $
|
||||
*/
|
||||
|
||||
namespace ADL.Exceptions {
|
||||
/// <summary>
|
||||
/// An exception to be thrown if an attempt is made to set a property
|
||||
/// to a value which is unsuitable
|
||||
/// </summary>
|
||||
public abstract class DataSuitabilityException : Exception {
|
||||
public DataSuitabilityException(String message) : base(message) {}
|
||||
}
|
||||
}
|
||||
24
ADL.NET/Exceptions/DomainKnowledgeViolationException.cs
Executable file
24
ADL.NET/Exceptions/DomainKnowledgeViolationException.cs
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/*
|
||||
* Application Description Framework
|
||||
* DomainKnowledgeViolationException.cs
|
||||
*
|
||||
* (c) 2007 Cygnet Solutions Ltd
|
||||
*
|
||||
* $Author: af $
|
||||
* $Revision: 1.1 $
|
||||
*/
|
||||
|
||||
namespace ADL.Exceptions {
|
||||
/// <summary>
|
||||
/// An exception to be thrown if a state arises which violates
|
||||
/// some specific knowledge about the application domain (i.e.
|
||||
/// a 'business rule' violation)
|
||||
/// </summary>
|
||||
public class DomainKnowledgeViolationException : Exception {
|
||||
public DomainKnowledgeViolationException(String message) : base(message) { }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue