Remove ModeNotSetException class