From 074ae3c3059b4503232cdb26a435103b7013cc83 Mon Sep 17 00:00:00 2001 From: insanity Date: Tue, 24 Apr 2018 19:13:11 +0900 Subject: [PATCH] infraservice throws exception --- .../service/central/infra/InfraService.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java index 3c154a9..eb83575 100644 --- a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java +++ b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java @@ -2,6 +2,7 @@ package com.loafle.overflow.service.central.infra; import java.util.List; +import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.model.PageParams; import com.loafle.overflow.model.domain.Domain; import com.loafle.overflow.model.infra.Infra; @@ -15,11 +16,11 @@ import org.springframework.data.domain.Page; */ public interface InfraService { - Infra regist(Infra infra); - Infra read(long id); - Page readAllByProbe(Probe probe, PageParams pageParams); - Page readAllByDomain(Domain domain, PageParams pageParams); - List readAllTargetByDomain(Domain domain); - List readAllTargetByProbeList(List probeList); - Infra readByTarget(Target target); + Infra regist(Infra infra) throws OverflowException; + Infra read(long id) throws OverflowException; + Page readAllByProbe(Probe probe, PageParams pageParams) throws OverflowException; + Page readAllByDomain(Domain domain, PageParams pageParams) throws OverflowException; + List readAllTargetByDomain(Domain domain) throws OverflowException; + List readAllTargetByProbeList(List probeList) throws OverflowException; + Infra readByTarget(Target target) throws OverflowException; }