oops... causes the exception type to be upcasted (from Fatal to Error)

This commit is contained in:
Fischlurch 2008-02-01 03:38:29 +01:00
parent 706589d422
commit 250954bb5f
2 changed files with 5 additions and 4 deletions

View file

@ -183,9 +183,10 @@ namespace cinelerra
void assertion_terminate (const string& location)
{
throw Fatal (location, CINELERRA_ERROR_ASSERTION)
.setUsermsg("Program terminated because of violating "
"an internal consistency check.");
Fatal exception (location, CINELERRA_ERROR_ASSERTION);
exception.setUsermsg("Program terminated because of violating "
"an internal consistency check.");
throw exception;
}

View file

@ -122,7 +122,7 @@ namespace cinelerra
/** Macro for creating derived exception classes properly
* integrated into cinelerra's exception hierarchy. Using
* this macro asures that the new class will get the full
* this macro ensures that the new class will get the full
* set of constructors and behaviour common to all exception
* classes, so it should be used when creating an derived
* exception type for more then stricly local purposes