Samuel,

We will need to trap your exceptions and throw XPath exceptions that can
be handled by the XPath interpreter.  The throw of XPath exceptions is how
error conditions are passed through the XPath interpreter engine, the
XalanTransformer engine, to the calling program via GetLastError().

What I just described is part of packaging your library of DatesAndTimes
class as XPath functions.  We can review the packaging requirements when
you are ready.

Your exceptions are good for testing and useful for your DatesAndTimes
class development.  Your work is all useful for implementing EXSLT
extension functions.

I will help you navigate the error propagation methods when we are ready
to start packaging the EXSLT functions.  The error propagation methods for
XPath functions are already well-defined and tested.

Sincerely,
Steven J. Hathaway

> Steven,
>
> there is a standard exception for invalid arguments into the C++ std
> library.
> It is *invalid_argument*, found at
> http://www.cplusplus.com/reference/std/stdexcept/invalid_argument/.
> I think is more appropriate use it. Do you think the same?
>
> Samuel
>
> 2012/6/27 Samuel Medeiros <ccc.sam...@gmail.com>
>
>> Steven,
>>
>> coding for various applications, often we create our owns exceptions.
>> I will create our owns ones extending the exception C++ class for the
>> Dates and Times module.
>>
>> Is it appropriate for the Xalan?
>>
>> Thanks,
>> Samuel
>>
>
>
>
> --
> Samuel de Medeiros Queiroz
> Formal Methods Group (GMF - UFCG - Brazil)
>



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org
For additional commands, e-mail: xalan-dev-h...@xml.apache.org

Reply via email to