package kr.wisestone.owl.exception; import kr.wisestone.owl.vo.MessageVo; public class OwlRuntimeException extends RuntimeException { private static final long serialVersionUID = 1L; protected String code; public OwlRuntimeException() { super(); } public OwlRuntimeException(String code, final String message, final Throwable cause) { super(message, cause); this.code = code; } public OwlRuntimeException(String code, final String message) { super(message); this.code = code; } public OwlRuntimeException(MessageVo message) { super(message.getMessage()); this.code = message.getCode(); } public OwlRuntimeException(MessageVo message, Throwable t) { super(message.getMessage(), t); this.code = message.getCode(); } public OwlRuntimeException(Exception e) { super(e); } public OwlRuntimeException(String code) { this.code = code; } public OwlRuntimeException(String code, Exception e) { super(e); this.code = code; } public String getCode() { return this.code; } }