Package lv.odylab.evemanage.application.exception

Examples of lv.odylab.evemanage.application.exception.EveDbException


        when(httpServletRequest.getParameter("itemID")).thenReturn("3");
        when(httpServletRequest.getParameter("meLevel")).thenReturn("4");
        when(httpServletRequest.getParameter("peLevel")).thenReturn("5");
        when(httpServletRequest.getParameter("attachedCharacterID")).thenReturn("6");
        when(httpServletRequest.getParameter("sharingLevel")).thenReturn("PERSONAL");
        doThrow(new EveDbException(new RuntimeException())).when(blueprintManagementService).createBlueprint(2L, 3L, 4, 5, 6L, "PERSONAL", new Key<User>(User.class, 1));
        addBlueprintTaskServlet.doPost(httpServletRequest, httpServletResponse);
    }
View Full Code Here


        try {
            InvBlueprintTypeDto invBlueprintTypeDto = client.getBlueprintTypeByTypeID(typeID);
            return mapper.map(invBlueprintTypeDto, BlueprintTypeDto.class);
        } catch (Exception e) {
            logger.error("Caught Exception", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

        try {
            lv.odylab.evedb.rpc.dto.BlueprintDetailsDto blueprintDetailsDto = client.getBlueprintDetailsForTypeID(typeID);
            return mapper.map(blueprintDetailsDto, BlueprintDetailsDto.class);
        } catch (Exception e) {
            logger.error("Caught Exception", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

        } 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);
        }
    }
View Full Code Here

        } catch (BadRequestException e) {
            logger.warn("Caught BadRequestException", e.getMessage());
            return new ArrayList<TypeMaterialDto>();
        } catch (Exception e) {
            logger.error("Caught Exception", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

        } catch (BadRequestException e) {
            logger.warn("Caught BadRequestException", e.getMessage());
            return new ArrayList<TypeRequirementDto>();
        } catch (Exception e) {
            logger.error("Caught Exception", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

        } catch (BadRequestException e) {
            logger.error("Caught BadRequestException", e.getMessage());
            throw new InvalidItemTypeException(e.getMessage(), ErrorCode.INVALID_ITEM_TYPE);
        } catch (RuntimeException e) {
            logger.error("Caught RuntimeException", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

                itemTypeDtos.add(mapper.map(invTypeBasicInfoDto, ItemTypeDto.class));
            }
            return itemTypeDtos;
        } catch (Exception e) {
            logger.error("Caught Exception", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

                itemTypeDtos.add(mapper.map(invTypeBasicInfoDto, ItemTypeDto.class));
            }
            return itemTypeDtos;
        } catch (Exception e) {
            logger.error("Caught Exception", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

        } 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);
        }
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.application.exception.EveDbException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.