using System; namespace FastReport.Utils { /// /// The exception that is thrown when the user tried to set object's name that is already exists. /// public class DuplicateNameException : Exception { internal DuplicateNameException(string name) : base(String.Format(Res.Get("Messages,DuplicateName"), name)) { } } /// /// The exception that is thrown when the user tried to rename an object that is introduced in the ancestor report. /// public class AncestorException : Exception { internal AncestorException(string name) : base(String.Format(Res.Get("Messages,RenameAncestor"), name)) { } } /// /// The exception that is thrown when the user tried to rename an object that is introduced in the ancestor report. /// public class SwissQrCodeException : Exception { internal SwissQrCodeException() { } internal SwissQrCodeException(string message) : base(message) { } internal SwissQrCodeException(string message, Exception inner) : base(message, inner) { } } /// /// The exception that is thrown when loading bad formed xml report file. /// public class FileFormatException : Exception { internal FileFormatException() : base(Res.Get("Messages,WrongFileFormat")) { } } /// /// The exception that is thrown when loading an encrypted report with wrong password. /// public class DecryptException : Exception { internal DecryptException() : base(Res.Get("Messages,DecryptError")) { } } /// /// The exception that is thrown if there is an error in the report's script code. /// public class CompilerException : Exception { internal CompilerException(string message) : base(message) { } } /// /// The exception that is thrown when trying to set an object's Parent property to /// an object that not accepts children of this type. /// public class ParentException : Exception { internal ParentException(Base parent, Base child) : base(String.Format(Res.Get("Messages,ParentError"), parent.GetType().Name, child.GetType().Name)) { } } /// /// The exception that is thrown when trying to load a report file that contains reference to an /// unknown object type. /// public class ClassException : Exception { internal ClassException(string name) : base(Res.Get("Messages,CantFindObject") + " " + name) { } } /// /// The exception that is thrown when initializing a table datasource which /// TableName or Alias is not set properly. /// public class DataTableException : Exception { internal DataTableException(string alias) : base(alias + ": " + Res.Get("Messages,TableIsNull")) { } } /// /// The exception that is thrown when trying to access a row of a datasource that is not initialized yet. /// public class DataNotInitializedException : Exception { internal DataNotInitializedException(string alias) : base(alias + ": " + Res.Get("Messages,DataNotInitialized")) { } } /// /// The exception that is thrown if an error occurs in the TableObject.ManualBuild event. /// public class TableManualBuildException : Exception { internal TableManualBuildException() : base(Res.Get("Messages,TableManualBuildError")) { } } /// /// The exception that is thrown if an error occurs in the MatrixObject.ManualBuild event. /// public class MatrixValueException : Exception { internal MatrixValueException(int count) : base(String.Format(Res.Get("Messages,MatrixValueError"), count)) { } } /// /// The exception that is thrown if a report object's Name property is set to wrong value. /// public class NotValidIdentifierException : Exception { internal NotValidIdentifierException(string value) : base(String.Format("'{0}' is not valid identifier name", value)) { } } /// /// The exception that is thrown if an unknown value is supplied to some methods dealing with totals, variables etc. /// public class UnknownNameException : Exception { internal UnknownNameException(string value) : base(String.Format("Unknown name '{0}'", value)) { } } /// /// throws this exception if an error occurs in the SaveReport method. /// See inner exception for detailed information. /// public class CloudStorageException : Exception { internal CloudStorageException(string message, Exception innerException) : base(message, innerException) { } } /// /// The exception that is thrown when the Group Header has no group condition. /// public class GroupHeaderHasNoGroupCondition : Exception { internal GroupHeaderHasNoGroupCondition(string name) : base(String.Format(Res.Get("Messages,GroupHeaderHasNoGroupCondition"), name)) { } } }