io.stepfunc.rodbus.Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rodbus Show documentation
Show all versions of rodbus Show documentation
Safe and fast Modbus library
// 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;
}
}