LambdaUserError must be a regular function because it must be recognizable through instanceof