admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Quintiq file version 2.0
#parent: #root
Method OnFailure (QuillError e)
{
  Description:
  [*
    This method is called from the `onfailure` part of a `try{...}onerror{...}onfailure{...}` block. 
    We are no longer in a safe `try{...}` block, so `EndSafeTransaction` resets the `TransactionGUID` attribute. This ensures that the `IsSafe` method will return `false` when it is called.
    This method also calls the `HandleQuillErrorFromOnFailure` method. The `HandleQuillErrorFromOnFailure` method eventually throws an error.
    However, before the error is thrown, many objects are serialized. This ensures, for example, that we do not lose the `LibOpt_Snapshots` that were created in the current transaction.
  *]
  TextBody:
  [*
    // evr3 Jul-28-2020 (created)
    this.EndSafeTransaction();
    this.HandleQuillErrorFromOnFailure( e );
  *]
}