oops... causes the exception type to be upcasted (from Fatal to Error)
This commit is contained in:
parent
706589d422
commit
250954bb5f
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue