Use Arbutils exception Macros, instead of own ones.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ bool BattleSide::AllPossibleSlotsFilled() const {
|
||||
}
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
THROW_CREATURE("Exception during AllPossibleSlotsFilled check: '" << e.what() << "'.");
|
||||
THROW("Exception during AllPossibleSlotsFilled check: '" << e.what() << "'.");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -42,9 +42,9 @@ void BattleSide::SetChoice(BaseTurnChoice* choice) {
|
||||
}
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
THROW_CREATURE("Error during setting choice: '" << e.what() << "'.");
|
||||
THROW("Error during setting choice: '" << e.what() << "'.");
|
||||
}
|
||||
THROW_CREATURE("User not found");
|
||||
THROW("User not found");
|
||||
}
|
||||
|
||||
void BattleSide::SetCreature(ArbUt::BorrowedPtr<Creature> creature, uint8_t index) {
|
||||
|
||||
Reference in New Issue
Block a user