Jump to content
Software FX Community

Exception Handling - Sample?


User (Legacy)

Recommended Posts

Posted

Mind to pass out sample for each of the 3 exceptions thrown

(ArgumentException , File exceptions, license file exception)?

Thank you in advance for your help!

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:cVfhQ$rzCHA.1384@webserver1.softwarefx.com...

> Yes if the exception occurs during execution of the code inside the Try

> statement.

>

> We throw some ArgumentException when the arguments passed to some

functions

> are invalid, some file exceptions during IO operations, and License

> Exception when license information is not found.

>

> --

> FP

> Software FX, Inc.

>

>

Does chartFXLite.NET throw any special exception type that can be catched?

If yes, what are they (I couldn't find it in the "ChartFX_LiteNET_API.chm"

API documentation/help file)?

If not:

1. Will standard try-catch block (see below) is sufficient to catch any

error may be generated by chartFXLite.NET?

2. Is it guaranteed that if chartFXLite.NET raise any exception, it will

not crash the system?

Try

'Code...

Catch exc as exception

'Handle error...

'Uncomment below if special exception type is supported by chartFXLite.NET

'Catch cfxExc as chartFXLiteNetexception

'Handle error...

End try

Thank You!

Posted

Mind to pass out sample for each of the 3 exceptions thrown

(ArgumentException , File exceptions, license file exception)?

Thank you in advance for your help!

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:cVfhQ$rzCHA.1384@webserver1.softwarefx.com...

> Yes if the exception occurs during execution of the code inside the Try

> statement.

>

> We throw some ArgumentException when the arguments passed to some

functions

> are invalid, some file exceptions during IO operations, and License

> Exception when license information is not found.

>

> --

> FP

> Software FX, Inc.

>

>

Does chartFXLite.NET throw any special exception type that can be catched?

If yes, what are they (I couldn't find it in the "ChartFX_LiteNET_API.chm"

API documentation/help file)?

If not:

1. Will standard try-catch block (see below) is sufficient to catch any

error may be generated by chartFXLite.NET?

2. Is it guaranteed that if chartFXLite.NET raise any exception, it will

not crash the system?

Try

'Code...

Catch exc as exception

'Handle error...

'Uncomment below if special exception type is supported by chartFXLite.NET

'Catch cfxExc as chartFXLiteNetexception

'Handle error...

End try

Thank You!

Posted

Sorry, I don't understand what you need ? an example of catching an

exception ?

Exceptions will only happen if you supply WRONG data to the chart Properties

and Methods, in regular circumstances exceptions are not thrown.

--

FP

Software FX, Inc.

Posted

Sorry, I don't understand what you need ? an example of catching an

exception ?

Exceptions will only happen if you supply WRONG data to the chart Properties

and Methods, in regular circumstances exceptions are not thrown.

--

FP

Software FX, Inc.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...