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

io.stepfunc.rodbus.ParamError Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
// This library is provided under the terms of a non-commercial license.
// 
// Please refer to the source repository for details:
// 
// https://github.com/stepfunc/rodbus/blob/master/LICENSE.txt
// 
// Please contact Step Function I/O if you are interested in commercial license:
// 
// [email protected]
package io.stepfunc.rodbus;

import org.joou.*;

/**
 * Error type used throughout the library
 */
public enum ParamError
{
    /**
     * Success, i.e. no error occurred
     */
    OK(0),
    /**
     * Null parameter
     */
    NULL_PARAMETER(1),
    /**
     * Logging can only be configured once
     */
    LOGGING_ALREADY_CONFIGURED(2),
    /**
     * Failed to create tokio runtime
     */
    RUNTIME_CREATION_FAILURE(3),
    /**
     * Runtime was already disposed of
     */
    RUNTIME_DESTROYED(4),
    /**
     * Runtime cannot execute blocking call within asynchronous context
     */
    RUNTIME_CANNOT_BLOCK_WITHIN_ASYNC(5),
    /**
     * Invalid socket address
     */
    INVALID_SOCKET_ADDRESS(6),
    /**
     * Invalid Modbus address range
     */
    INVALID_RANGE(7),
    /**
     * Invalid Modbus request
     */
    INVALID_REQUEST(8),
    /**
     * Invalid index
     */
    INVALID_INDEX(9),
    /**
     * Server failed to bind to the specified port
     */
    SERVER_BIND_ERROR(10),
    /**
     * The specified unit id is not associated to this server
     */
    INVALID_UNIT_ID(11),;
    
    final private int value;
    
    private ParamError(int value)
    {
        this.value = value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy