Re: Bond Cash flow dates

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Yc-Issue-in-Ql-tp14172p14182.html

Hi,
    I'm not sure what the context was here.  Anyway, it's only a crash
if you don't catch exceptions. If you surround the yield-curve
construction with a try/catch clause, you can get hold of the
exception that was raised and find the reason for the failure.
Something like the following will do:

try {
    // your code here
} catch (std::exception& e) {
        std::cout << e.what() << std::endl;
}

Luigi


On Tue, Apr 2, 2013 at 3:47 PM, sumanta <[hidden email]> wrote:

> Hello,
>
> You were right. I passed some wrong parameters due to which the yc was not
> formed properly. I have fixed it and now it is working fine. Thanks for the
> help.
>
> However, there is one more issue. I asked one of my college to do some
> negetive testing on my implementation. What he did was to give some sharp
> jumps to the input points.  This caused a crashed in the YC. I agree that
> the sharp jumps that he gave was no logical. How can you suggest why the yc
> crashed? And is it the responsibility of the user to check the validity of
> the input points before passing it for yc construction.
>
>
>
> --
> View this message in context: http://quantlib.10058.n7.nabble.com/Yc-Issue-in-Ql-tp14172p14179.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users