All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.power4j.coca.kit.jna.exception.NativeApiFailureException Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2021 ChenJun ([email protected])
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.power4j.coca.kit.jna.exception;

/**
 * API 返回失败
 *
 * @author cj
 * @date 2019/4/4
 * @since 1.0.0
 */
public class NativeApiFailureException extends NativeAccessException {

	private long code;

	public NativeApiFailureException(long code, String message) {
		super(message);
		this.code = code;
	}

	public NativeApiFailureException(long code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public long getCode() {
		return code;
	}

	public void setCode(long code) {
		this.code = code;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy