Throw exception inside command.