1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Runtime.Serialization;
6
using System.Security.Permissions;
9
/// This Class throws the Standart SharpReport Error
12
/// created by - Forstmeier Peter
13
/// created on - 15.01.2005 09:39:32
16
namespace ICSharpCode.Reports.Core {
18
public class ReportException : Exception {
21
string errorMessage = String.Empty;
22
public ReportException():base(){
25
public ReportException(string errorMessage) :base (errorMessage){
26
this.errorMessage = errorMessage;
28
public ReportException(string errorMessage,
29
Exception exception):base (errorMessage,exception){
33
protected ReportException(SerializationInfo info,
34
StreamingContext context) : base(info, context){
35
// Implement type-specific serialization constructor logic.
38
public string ErrorMessage {
44
[SecurityPermissionAttribute(SecurityAction.Demand,
45
SerializationFormatter = true)]
47
public override void GetObjectData(SerializationInfo info, StreamingContext context){
49
throw new ArgumentNullException("info");
51
info.AddValue("errorMessage", this.errorMessage);
52
base.GetObjectData(info, context);