When the script is compiled Exception(msg).What return only negative integer.
But not compiled it work properly
Is is possible to get current function when the exception is thrown in compiled script (without explicitly write A_ThisFunc)?
Exception.What when the script is compiled
Exception.What when the script is compiled
Last edited by bourdin07 on 19 Aug 2019, 04:56, edited 1 time in total.
Re: Exception.What when the script is compiled
my boldexception wrote: If What is omitted, it defaults to the name of the current function or subroutine. Otherwise it can be a string or a negative offset from the top of the call stack. For example, a value of -1 sets Exception.What to the current function or subroutine and Exception.Line to the line which called it. However, if the script is compiled or the offset is invalid, What is simply converted to a string.
Cheers.
Re: Exception.What when the script is compiled
Mybad
I have Exception.what function name properly when throw Exception(msg)
But when I try to loop Exception offset, what is negative integer
I have Exception.what function name properly when throw Exception(msg)
But when I try to loop Exception offset, what is negative integer