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:
@@ -105,8 +105,8 @@ namespace CreatureLib::Battling {
|
||||
return {battle->GetCreature(index)};
|
||||
};
|
||||
}
|
||||
THROW_CREATURE("Unknown attack target kind: '" << CreatureLib::Library::AttackTargetHelper::ToString(target)
|
||||
<< "'.");
|
||||
THROW("Unknown attack target kind: '" << CreatureLib::Library::AttackTargetHelper::ToString(target)
|
||||
<< "'.");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ void TurnHandler::HandleAttackForTarget(ExecutingAttack* attack, const ArbUt::Bo
|
||||
} catch (const ArbUt::Exception& e) {
|
||||
throw e;
|
||||
} catch (const std::exception& e) {
|
||||
THROW_CREATURE("Exception during status attack effect handling: " << e.what() << ".");
|
||||
THROW("Exception during status attack effect handling: " << e.what() << ".");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -235,8 +235,7 @@ void TurnHandler::HandleAttackForTarget(ExecutingAttack* attack, const ArbUt::Bo
|
||||
} catch (const ArbUt::Exception& e) {
|
||||
throw e;
|
||||
} catch (const std::exception& e) {
|
||||
THROW_CREATURE("Exception during offensive attack secondary effect handling: " << e.what()
|
||||
<< ".");
|
||||
THROW("Exception during offensive attack secondary effect handling: " << e.what() << ".");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user