⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 restexception.java

📁 SOApprocah方法的源程序下载 基于经典的PMI-IR方法
💻 JAVA
字号:
package com.yahoo.rest;/** * Class encapsulating a wide range of REST-related errors. * * @author Ryan Kennedy */public class RestException extends Exception {    private byte[] errorMessage;    private RestException() {    }    /**     * Constructs a rest exception with a message and the error content     * returned by the server.     *     * @param message The message to wrap inside the exception.     * @param errorMessage The error content sent back by the server.     */    public RestException(String message, byte[] errorMessage) {        super(message);        this.errorMessage = errorMessage;    }    /**     * Gets the error content sent back by the server.     *     * @return The error content sent back by the server.     */    public byte[] getErrorMessage() {        return errorMessage;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -