// Path: bolt-jna-core/src/main/java/com/protonail/bolt/jna/BoltException.java
// public class BoltException extends RuntimeException {
//     public BoltException(String message) {
//         super(message);
//     }
// }


import com.protonail.bolt.jna.BoltException;
import com.sun.jna.Structure;
import java.util.Collections;
import java.util.List;
package com.protonail.bolt.jna.impl;



public class Error extends Structure {
    public static class ByValue extends Error implements Structure.ByValue {
        public void checkError() {
            if (error != null) {
                BoltNative.Error_Free(this);
// Path: bolt-jna-core/src/main/java/com/protonail/bolt/jna/BoltException.java
// public class BoltException extends RuntimeException {
//     public BoltException(String message) {
//         super(message);
//     }
// }


// Path: bolt-jna-core/src/main/java/com/protonail/bolt/jna/impl/Error.java
import com.protonail.bolt.jna.BoltException;
import com.sun.jna.Structure;
import java.util.Collections;
import java.util.List;

package com.protonail.bolt.jna.impl;



public class Error extends Structure {
    public static class ByValue extends Error implements Structure.ByValue {
        public void checkError() {
            if (error != null) {
                BoltNative.Error_Free(this);
                throw new BoltException(error);