Go to the documentation of this file.
19package org.sleuthkit.autopsy.mcp;
26class McpException
extends Exception {
29 static final int ERR_METHOD_NOT_FOUND = -32601;
31 static final int ERR_INVALID_PARAMS = -32602;
33 static final int ERR_INTERNAL_ERROR = -32603;
35 private final int jsonRpcCode;
38 McpException(String message) {
40 this.jsonRpcCode = ERR_INVALID_PARAMS;
43 McpException(String message,
int jsonRpcCode) {
45 this.jsonRpcCode = jsonRpcCode;
49 McpException(String message, Throwable cause) {
50 super(message, cause);
51 this.jsonRpcCode = ERR_INTERNAL_ERROR;
54 int getJsonRpcCode() {
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.