1
2
3
4
5
6
7
8
9
10
11
12
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method IsSafe () const as Boolean 
 |  { 
 |    Description: 
 |    [* 
 |      Returns `true` if the current transaction is being executed from within a `try{...}` block. 
 |      When this method returns `true`, any errors in the current transaction will be handled by the `this.OnError()` or the `this.OnFailure()` method.  
 |      Note: Propagation errors will only be detected if the `LibOpt_Run.HasToPropagateAfterUserCode` attribute is set to `true`. This attribute can be set in the 'Toggles' context menu of the 'Optimizers' and 'Runs' forms. 
 |    *] 
 |    TextBody: 'return this.TransactionGUID() = Transaction::GetCurrentTask().GUID();' 
 |  } 
 |  
  |