throwAsCaller

Lancer une exception comme si elle se produisait dans la fonction appelante.

๐Ÿ“ Syntaxe

  • throwAsCaller(MException)

๐Ÿ“ฅ Argument d'entrรฉe

  • MException - objet MException

๐Ÿ“„ Description

Elle lance une exception comme si elle se produisait dans la fonction appelante.

๐Ÿ’ก Exemple


function test_throwAsCaller()
  ME = MException('n:m', 'your error')
  throwAsCaller(ME)

๐Ÿ”— Voir aussi

MException, rethrow, throw.

๐Ÿ•” Historique

Version
๐Ÿ“„ Description

1.0.0

version initiale

Last updated