Namespace: Consultingwerk.Exceptions
Class 
RecordAlreadyExistsException Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.Exceptions.Exception
Implements: Consultingwerk.Exceptions.ISupportsInnerException, Consultingwerk.Exceptions.IProvidesSessionInfo

File:RecordAlreadyExistsException
Purpose:Exception thrown by DataAccess and SmartDatasetAdapter
when an update record conflicts with another record.
Description:Allows customization of ABL error 132
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Nov 27 18:32:41 CET 2015
Notes:The static MessageTemplate property allows to set a custom
default message text (used by the FromSysError method).
&1 can be used for the table name, &2 can be used for the
fields/values. The default message does not use the
&1 place holder.



Top Method Summary
Options Name Purpose
+ AddMessagesFrom (Error) Adds error messages from another error to this Exception instance
Inherited from Consultingwerk.Exceptions.Exception
+ Consultingwerk.Exceptions.Exception FromErrorMessageAndError (character, integer, Error) Creates an Exception using the given error message and number and Existing Error
Inherited from Consultingwerk.Exceptions.Exception
+ Consultingwerk.Exceptions.RecordAlreadyExistsException FromSysError (SysError) Parses a SysError 132 and returns the RecordAlreadyExistsException with all detail

Top Constructor Summary
Options Name Purpose
+ RecordAlreadyExistsException () Constructor of the Exception class
+ RecordAlreadyExistsException (character) Constructor of the Exception class
+ RecordAlreadyExistsException (character, integer) Constructor of the Exception class
+ RecordAlreadyExistsException (Error) Constructor of the Exception class
+ RecordAlreadyExistsException (Error, character) Constructor of the Exception class
+ RecordAlreadyExistsException (Error, character, integer) Constructor of the Exception class
+ RecordAlreadyExistsException (Error, character, integer, character, character) Constructor of the Exception class

Top Property Summary
Options Name Purpose
+ CHARACTER FieldValues Returns the FieldValues Name of this Exception
+ Progress.Lang.Error InnerException Returns the Error instance that caused the current exception.
Inherited from Consultingwerk.Exceptions.Exception
+ CHARACTER MessageTemplate Customization of the error message for ABL error 132 raised during SAVE-ROW-CHANGES
+ SessionInfo SessionInfo Returns the Information aboult the Session the error occured in
Inherited from Consultingwerk.Exceptions.Exception
+ CHARACTER TableName Returns the Table Name of this Exception


Method Detail
Top

PUBLIC AddMessagesFrom (Error)

Inherited from Consultingwerk.Exceptions.Exception
Purpose: Adds error messages from another error to this Exception instance
Notes:

Parameters:
poError Progress.Lang.Error
The error instance to add errors from
Top

PUBLIC Consultingwerk.Exceptions.Exception FromErrorMessageAndError (character, integer, Error)

Inherited from Consultingwerk.Exceptions.Exception
Purpose: Creates an Exception using the given error message and number and
Existing Error
Notes: The messages from the existing error will be added to the new error
are well, useful for adding messages to ABL runtime errors

Parameters:
pcErrorString CHARACTER
The error message associated with this Exception object
piMessageNumber INTEGER
The error message number associated with this Exception object
poError Progress.Lang.Error
The reference to the original error
Returns Consultingwerk.Exceptions.Exception
The reference to the new Exception
Top

PUBLIC Consultingwerk.Exceptions.RecordAlreadyExistsException FromSysError (SysError)

Purpose: Parses a SysError 132 and returns the RecordAlreadyExistsException
with all detail
Notes:

Parameters:
poError Progress.Lang.SysError
The SysError to parse
Returns Consultingwerk.Exceptions.RecordAlreadyExistsException
The RecordAlreadyExistsException


Constructor Detail
Top

PUBLIC RecordAlreadyExistsException ()

Purpose: Constructor of the Exception class
Notes:

Top

PUBLIC RecordAlreadyExistsException (character)

Purpose: Constructor of the Exception class
Notes:

Parameters:
pcErrorString CHARACTER
The error message associated with this Exception object
Top

PUBLIC RecordAlreadyExistsException (character, integer)

Purpose: Constructor of the Exception class
Notes:

Parameters:
pcErrorString CHARACTER
The error message associated with this Exception object
piMessageNumber INTEGER
The error message number associated with this Exception object
Top

PUBLIC RecordAlreadyExistsException (Error)

Purpose: Constructor of the Exception class
Notes:

Parameters:
poInnerException Progress.Lang.Error
The reference to the original error
Top

PUBLIC RecordAlreadyExistsException (Error, character)

Purpose: Constructor of the Exception class
Notes:

Parameters:
poInnerException Progress.Lang.Error
The reference to the original error
pcErrorString CHARACTER
The error message associated with this Exception object
Top

PUBLIC RecordAlreadyExistsException (Error, character, integer)

Purpose: Constructor of the Exception class
Notes:

Parameters:
poInnerException Progress.Lang.Error
The reference to the original error
pcErrorString CHARACTER
The error message associated with this Exception object
piMessageNumber INTEGER
The error message number associated with this Exception object
Top

PUBLIC RecordAlreadyExistsException (Error, character, integer, character, character)

Purpose: Constructor of the Exception class
Notes:

Parameters:
poInnerException Progress.Lang.Error
The reference to the original error
pcErrorString CHARACTER
The error message associated with this Exception object
piMessageNumber INTEGER
The error message number associated with this Exception object
pcTableName CHARACTER
The value for the TableName property
pcFieldValues CHARACTER
The value for the FieldValues property


Property Detail
Top

PUBLIC CHARACTER FieldValues

Purpose: Returns the FieldValues Name of this Exception
Notes:

Returns CHARACTER
Top

PUBLIC Progress.Lang.Error InnerException

Inherited from Consultingwerk.Exceptions.Exception
Purpose: Returns the Error instance that caused the current exception.
Notes:

Returns Progress.Lang.Error
Top

PUBLIC CHARACTER MessageTemplate

Purpose: Customization of the error message for ABL error 132 raised
during SAVE-ROW-CHANGES
Notes: ** Salesrep already exists with Sales Rep "bbb". (132)
&1 for the Table name, &2 for the field values
This property allows to set the (localized) default text for the
exception

Returns CHARACTER
Top

PUBLIC SessionInfo SessionInfo

Inherited from Consultingwerk.Exceptions.Exception
Purpose: Returns the Information aboult the Session the error occured in
Notes:

Returns SessionInfo
Top

PUBLIC CHARACTER TableName

Purpose: Returns the Table Name of this Exception
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:28:28