Skip to content

Conversation

@AlexIJdev
Copy link

No description provided.

@AlexIJdev AlexIJdev changed the title Сompleted task 1 Сompleted task 1, task 2 Oct 28, 2023
throw new TimeTravelException("The time machine is not working at the moment!");
}
if (yearInTheFuture < timeTraveler.getBirthYear()) {
throw new TimeTravelException("The traveler has not yet been born!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить контекст возникновения ошибки

timeMachineOne.travelInTime(timeTravelerThree, 2070);

// исключение "The time machine is not working at the moment!"
timeMachineTwo.travelInTime(timeTravelerOne, 2070);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants