Home    CoolWatermark Online Documentation Prev Next
CoolWatermark
Welcome
Features
Installation
Release Notes
Requirements
Reference
Classes
Writer
Methods
Properties
CoolWatermarkException
Structure
Border
Effect
Shadow
Shape
Enumeration
BrushStyle
EffectStyle
PositionStyle
ShapeStyle
Artical
Effect Samples
Overlapped Image
Shadow Samples
Shape Samples
Write with Border
Customize Shape Warp
Write Halo Text
Purchase
License
[Top]
CoolWatermark Component for .NET ImageComponent.NET Logo
CoolWatermarkException


The exception that is thrown when CoolWatermark returns a warning or error. This class cannot be inherited.

[Visual Basic]
NotInheritable Public Class CoolWatermarkException Inherits System.Exception
 
[C#]
Public sealed class CoolWatermarkException: System.Exception

Remarks

This class inherits System.Exception, please refer to the usage of Exception in MSDN.

Example

[Visual Basic]

' Initialize an empty Writer object
Dim obj As New angGoGo.CoolWatermark.Writer()

' Call process method will raise the exception because there is no Image in Writer
Try
       obj.WriteText("hello world")
Catch ex As CoolWatermarkException
      MessageBox.Show(ex.Message)
End Try

[C#]

// Initialize an empty Writer object
angGoGo.CoolWatermark.Writer obj = new angGoGo.CoolWatermark.Writer( );

// Call process method will raise the exception because there is no image in Controller
try
       obj.WriteText("hello world");
catch ( CoolWatermarkException ex)
       MessageBox.Show(ex.Message);

 

2005-2007 © ImageComponent.NET. All rights reserved.

  Valid HTML 4.01 Transitional