What happens if the function generates an exception of the type not allowed by the specification of exceptions of this function?
In the function description, you can specify the "specification of exceptions" - a list of exceptions that can be generated by this function:
int g (float h) throw (a, b, c,)
// function body
If an exception not listed in the specification is generated, the unexpected exceptions processing function is called

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Зареєструйся Зараз
або Підпишись на майбутні тести