Why doesn’t sawtooth allow me to declare exceptions?

When I want to declare an error in my handler, it causes an infinite loop in my processor which displays in the console :

{ InvalidTransaction: InvalidTransaction: Error when initializing the object!
    at VoteHandler.apply (/app/handler.js:79:19)
    at <anonymous> name: 'InvalidTransaction' }

“Error while initializing the object!” being my error message.
IMAGE : Error while initializing the object message error

I develop my processor in JS and I could see code examples in java, js, python, … They always do the same thing, that is to say simply declare the exception by importing it from the sawtooth-sdk package (sawtooth-sdk/processor/exceptions).
En java :
IMAGE : Java exceptions

LINK : Daml Transaction Java

En python :
IMAGE : Python exceptions

LINK : Sawtooth xo pyton

En js :
IMAGE : JS exceptions

LINK : Simple Wallet JS

I also tried to get the exceptions from the package @restroom-mw/sawtooth-sdk/ but the error is still there.
IMAGE : Import exceptions

Normally my error report should return an error code with my error message to my client.