@@ -0,0 +1,1137 @@
+/**%0A * ychen%0A * Copyright (c).%0A */%0Apackage cn.edu.fudan.iipl.exception;%0A%0Aimport org.springframework.stereotype.Component;%0A%0Aimport cn.edu.fudan.iipl.enums.BlogExceptionEnum;%0A%0A/**%0A * %E5%85%A8%E5%B1%80Exception%0A * @author racing%0A * @version $Id: BlogException.java, v 0.1 Aug 8, 2015 4:18:46 PM racing Exp $%0A */%0A@Component%0Apublic class BlogException extends RuntimeException %7B%0A%0A    /**  */%0A    private static final long serialVersionUID = 1848107438259593418L;%0A%0A    private BlogExceptionEnum blogExceptionEnum;%0A%0A    public BlogException() %7B%0A        super(BlogExceptionEnum.SYSTEM_ERROR.getDescription());%0A        this.blogExceptionEnum = BlogExceptionEnum.SYSTEM_ERROR;%0A    %7D%0A%0A    public BlogException(BlogExceptionEnum blogExceptionEnum) %7B%0A        super(blogExceptionEnum.getDescription());%0A        this.blogExceptionEnum = blogExceptionEnum;%0A    %7D%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E9%94%99%E8%AF%AF%E7%A0%81%0A     * @return messageCode%0A     */%0A    public String getMessageCode() %7B%0A        return blogExceptionEnum.getMessageCode();%0A    %7D%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E9%94%99%E8%AF%AF%E6%8F%8F%E8%BF%B0%0A     * @return description%0A     */%0A    public String getDescription() %7B%0A        return blogExceptionEnum.getDescription();%0A    %7D%0A%7D%0A

create exception