@Override
@Caching
public BlueprintDetailsDto getBlueprintDetailsForTypeName(String typeName) throws EveDbException, InvalidNameException {
try {
if (typeName.length() == 0) {
throw new InvalidNameException(typeName, ErrorCode.NAME_CANNOT_BE_EMPTY);
}
lv.odylab.evedb.rpc.dto.BlueprintDetailsDto blueprintDetailsDto = client.getBlueprintDetailsForTypeName(typeName);
return mapper.map(blueprintDetailsDto, BlueprintDetailsDto.class);
} catch (BadRequestException e) {
logger.error("Caught BadRequestException", e);
throw new InvalidNameException(typeName, ErrorCode.INVALID_NAME);
} catch (RuntimeException e) {
logger.error("Caught RuntimeException", e);
throw new EveDbException(e);
}
}