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

io.stepfunc.rodbus.Status 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.*;

/**
 * Status returned during synchronous and asynchronous API calls
 */
public enum Status
{
    /**
     * The operation was successful and any return value may be used
     */
    OK(0),
    /**
     * The channel was shutdown before the operation could complete
     */
    SHUTDOWN(1),
    /**
     * No connection could be made to the server
     */
    NO_CONNECTION(2),
    /**
     * No valid response was received before the timeout
     */
    RESPONSE_TIMEOUT(3),
    /**
     * The request was invalid
     */
    BAD_REQUEST(4),
    /**
     * The response from the server was received but was improperly formatted
     */
    BAD_RESPONSE(5),
    /**
     * An I/O error occurred on the underlying stream while performing the request
     */
    IO_ERROR(6),
    /**
     * A framing error was detected while performing the request
     */
    BAD_FRAMING(7),
    /**
     * The server returned an exception code (see separate exception value)
     */
    EXCEPTION(8),
    /**
     * An unspecified internal error occurred while performing the request
     */
    INTERNAL_ERROR(9),
    /**
     * An invalid argument was supplied and the request could not be performed
     */
    BAD_ARGUMENT(10),;
    
    final private int value;
    
    private Status(int value)
    {
        this.value = value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy