FCFL.NET Common Library - API Reference
Assert Method

The unique error ID of the exception that will be thrown if the assertion fails.
A boolean which is the result of an assertion. If false, a CommonException will be thrown using the errorId specified.
A description of what the assertion represents and why it is important.
Assert it used internally by First Choice products to ensure that internal state and data is consistent with expected norms.
Syntax
'Declaration
 
Public Shared Sub Assert( _
   ByVal errorId As Integer, _
   ByVal assertionResult As Boolean, _
   ByVal reason As String _
) 
public static void Assert( 
   int errorId,
   bool assertionResult,
   string reason
)

Parameters

errorId
The unique error ID of the exception that will be thrown if the assertion fails.
assertionResult
A boolean which is the result of an assertion. If false, a CommonException will be thrown using the errorId specified.
reason
A description of what the assertion represents and why it is important.
Exceptions
ExceptionDescription
CommonExceptionThe assertion failed.
Remarks
Note that the reason parameter is not localized. Assertions are generally internal state monitors used by programmers and are not intended to be viewed by end users. The reason should be encoded in the language of the developer to aid in troubleshooting.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Reference

CommonException Class
CommonException Members

 

 


© 2010 Dovetail Software, Inc. - All rights reserved.
- Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
- .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.

Send comments on this topic.