Class CipException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.automation_pros.odva.cip.exceptions.CipException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CipAttrDataException,CipAttrException,CipAttrListException,CipBadAttrException,CipBadKeyException,CipBadStateException,CipBufferException,CipConxFailException,CipConxLostException,CipDataException,CipDNetGroup2Exception,CipDupeModeException,CipEmbSvcException,CipExistsException,CipFragmentedException,CipInstDeleteException,CipInvalListException,CipInvalReplyException,CipLargeReplyException,CipLargeReqException,CipLargeRspException,CipMemberException,CipMissingListException,CipModbusUnknownException,CipModeException,CipMsgFormatException,CipNoFragmentException,CipNonExistException,CipNotEnoughException,CipOnceException,CipOtherException,CipParamException,CipPartialDataException,CipPathDestException,CipPathException,CipPathSizeException,CipPermException,CipReadOnlyException,CipResourceException,CipRoMemberException,CipSaveException,CipServiceException,CipServicePathException,CipTooMuchException,CipUnreadableAttrException,CipUnsavedException,CipVendorException
public class CipException extends java.lang.RuntimeException- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CipExceptionCipSuccessprotected bytecodeprotected short[]extrastatic org.slf4j.LoggersLogger
-
Constructor Summary
Constructors Modifier Constructor Description CipException(byte code, short[] extra, java.lang.String msg)protectedCipException(byte code, short[] extra, java.lang.String msg, boolean trace)Allow creation of instances with no backtrace, via this constructor with trace set false.CipException(byte code, short[] extra, java.lang.String msg, java.lang.Throwable reason)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcodesString()static CipExceptioncreate(byte code, short[] extra)Construct a particular exception with no backtrace.static CipExceptiondecode(java.nio.ByteBuffer source)Exceptions decoded from bytes are presumed to have come through a communications channel, so are created without a backtrace.bytegetCode()short[]getExtra()voidputException(java.nio.ByteBuffer dest)static voidregisterHandler(java.lang.Class<? extends CipException> handler)
-
-
-
Field Detail
-
sLogger
public static final org.slf4j.Logger sLogger
-
CipSuccess
public static final CipException CipSuccess
-
code
protected byte code
-
extra
protected short[] extra
-
-
Constructor Detail
-
CipException
protected CipException(byte code, short[] extra, java.lang.String msg, boolean trace)Allow creation of instances with no backtrace, via this constructor with trace set false. A cause is not allowed in this mode.- Parameters:
code-extra-msg-trace-
-
CipException
public CipException(byte code, short[] extra, java.lang.String msg, java.lang.Throwable reason)
-
CipException
public CipException(byte code, short[] extra, java.lang.String msg)
-
-
Method Detail
-
registerHandler
public static void registerHandler(java.lang.Class<? extends CipException> handler)
-
decode
public static CipException decode(java.nio.ByteBuffer source)
Exceptions decoded from bytes are presumed to have come through a communications channel, so are created without a backtrace.- Parameters:
source-- Returns:
-
create
public static CipException create(byte code, short[] extra)
Construct a particular exception with no backtrace.
-
putException
public void putException(java.nio.ByteBuffer dest)
-
getCode
public byte getCode()
-
getExtra
public short[] getExtra()
-
codesString
public java.lang.String codesString()
-
-