Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class ApiTypeNotFoundException extends DataNotFoundException {

public static final String DEFAULT_MESSAGE = "존재하지 않는 API 타입입니다.";
private final String detail;

public ApiTypeNotFoundException(String message) {
super(message);
this.detail = null;
}

public ApiTypeNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static ApiTypeNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new ApiTypeNotFoundException(message);
return new ApiTypeNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return DEFAULT_MESSAGE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class BusArrivalNodeNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "버스 경로 상에 해당 노드가 존재하지 않습니다.";
private final String detail;

public BusArrivalNodeNotFoundException(String message) {
super(message);
this.detail = null;
}

public BusArrivalNodeNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static BusArrivalNodeNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new BusArrivalNodeNotFoundException(message);
return new BusArrivalNodeNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class BusCacheNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "버스 캐시가 존재하지 않습니다.";
private final String detail;

public BusCacheNotFoundException(String message) {
super(message);
this.detail = null;
}

public BusCacheNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static BusCacheNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new BusCacheNotFoundException(message);
return new BusCacheNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class BusNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "버스가 존재하지 않습니다.";
private final String detail;

public BusNotFoundException(String message) {
super(message);
this.detail = null;
}

public BusNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static BusNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new BusNotFoundException(message);
return new BusNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class BusOpenApiException extends ExternalServiceException {

private static final String DEFAULT_MESSAGE = "버스 Open API 응답이 정상적이지 않습니다.";
private final String detail;

public BusOpenApiException(String message) {
super(message);
this.detail = null;
}

public BusOpenApiException(String message, String detail) {
super(message);
this.detail = detail;
}

public static BusOpenApiException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new BusOpenApiException(message);
return new BusOpenApiException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class BusStationNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "버스 정류장이 존재하지 않습니다.";
private final String detail;

public BusStationNotFoundException(String message) {
super(message);
this.detail = null;
}

public BusStationNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static BusStationNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new BusStationNotFoundException(message);
return new BusStationNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class BusTypeNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "버스 타입이 존재하지 않습니다.";
private final String detail;

public BusTypeNotFoundException(String message) {
super(message);
this.detail = null;
}

public BusTypeNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static BusTypeNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new BusTypeNotFoundException(message);
return new BusTypeNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class ArticleNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "게시글이 존재하지 않습니다.";
private final String detail;

public ArticleNotFoundException(String message) {
super(message);
this.detail = null;
}

public ArticleNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static ArticleNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new ArticleNotFoundException(message);
return new ArticleNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return DEFAULT_MESSAGE;
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
package in.koreatech.koin.domain.coop.exception;

import in.koreatech.koin.domain.shop.exception.ShopCategoryNotFoundException;
import in.koreatech.koin.global.exception.DataNotFoundException;

public class MenuNotFoundException extends DataNotFoundException {
private static final String DEFAULT_MESSAGE = "존재하지 않는 메뉴입니다.";
private final String detail;

public MenuNotFoundException(String message) {
super(message);
this.detail = null;
}

public static ShopCategoryNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new ShopCategoryNotFoundException(message);
public MenuNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static MenuNotFoundException withDetail(String detail) {
return new MenuNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class LandNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "복덕방이 존재하지 않습니다.";
private final String detail;

public LandNotFoundException(String message) {
super(message);
this.detail = null;
}

public LandNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static LandNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new LandNotFoundException(message);
return new LandNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class MemberNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "존재하지 않는 BCSD 회원입니다.";
private final String detail;

public MemberNotFoundException(String message) {
super(message);
this.detail = null;
}

public MemberNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static MemberNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new MemberNotFoundException(message);
return new MemberNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@
public class TrackNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "존재하지 않는 트랙입니다.";
private final String detail;

public TrackNotFoundException(String message) {
super(message);
this.detail = null;
}

public TrackNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static TrackNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new TrackNotFoundException(message);
return new TrackNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
package in.koreatech.koin.domain.owner.exception;

import in.koreatech.koin.domain.shop.exception.MenuNotFoundException;
import in.koreatech.koin.global.exception.DataNotFoundException;

public class AttachmentNotFoundException extends DataNotFoundException {

private static final String DEFAULT_MESSAGE = "존재하지 않는 첨부파일입니다.";
private final String detail;

public AttachmentNotFoundException(String message) {
super(message);
this.detail = null;
}

public static MenuNotFoundException withDetail(String detail) {
String message = String.format("%s %s", DEFAULT_MESSAGE, detail);
return new MenuNotFoundException(message);
public AttachmentNotFoundException(String message, String detail) {
super(message);
this.detail = detail;
}

public static AttachmentNotFoundException withDetail(String detail) {
return new AttachmentNotFoundException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return DEFAULT_MESSAGE;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package in.koreatech.koin.domain.owner.exception;

import in.koreatech.koin.global.exception.DuplicationException;

public class DuplicationCertificationException extends DuplicationException {
private static final String DEFAULT_MESSAGE = "이미 인증이 완료되었습니다.";
private final String detail;

public DuplicationCertificationException(String message) {
super(message);
this.detail = null;
}

public DuplicationCertificationException(String message, String detail) {
super(message);
this.detail = detail;
}

public static DuplicationCertificationException withDetail(String detail) {
return new DuplicationCertificationException(DEFAULT_MESSAGE, detail);
}

@Override
public String getDetail() {
return detail;
}
}
Loading