fuint-framework/fuint-util/src/main/java/com/fuint/exception/NotFoundException.java

(完整代码) 689B

package com.fuint.exception;

/**
 * Exception for resource not found.
 *
 * This exception always been thrown on a missing resource finding with specified identifier
 *
 * @author Harrison han
 */
public class NotFoundException extends HttpStatusException {

  private static final Integer STATUS_CODE = 404;

  public NotFoundException() {

    super.setStatus(STATUS_CODE);
    super.setMessage("not found");

  }

  public NotFoundException(String message) {

    super.setStatus(STATUS_CODE);
    super.setMessage(message);

  }

  public NotFoundException(String message, Exception cause) {

    super(cause);
    super.setStatus(STATUS_CODE);
    super.setMessage(message);

  }

}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。