dynamically display current method name in InternalError messages