CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
ValidationException.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="ValidationException.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Exception class indicating that there was a validation</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla.Rules
11{
12
17 [Serializable()]
18 public class ValidationException : Exception
19 {
20
25 {
26
27 }
28
33 public ValidationException(string message)
34 : base(message)
35 {
36
37 }
38
44 public ValidationException(string message, Exception innerException)
45 : base(message, innerException)
46 {
47
48 }
49
50#if !(ANDROID || IOS) && !NETFX_CORE
56 protected ValidationException(System.Runtime.Serialization.SerializationInfo info,
57 System.Runtime.Serialization.StreamingContext context)
58 : base(info, context)
59 {
60
61 }
62#endif
63 }
64}
Exception class indicating that there was a validation problem with a business object.
ValidationException(string message)
Creates an instance of the object.
ValidationException()
Creates an instance of the object.
ValidationException(string message, Exception innerException)
Creates an instance of the object.
ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Creates an instance of the object for serialization.
@ Serializable
Prevents updating or inserting until the transaction is complete.