Class GenericTransferrableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.inductiveautomation.ignition.common.GenericTransferrableException
-
- All Implemented Interfaces:
IExceptionFacade
,java.io.Serializable
public class GenericTransferrableException extends java.lang.Exception implements IExceptionFacade
This is a general exception that can be used to transfer error information across RPC. It wraps everything up into generic types that will exist on both sides of the boundary, getting around serialization issues caused by custom exceptions. Use the static create() function to build.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericTransferrableException(java.lang.Throwable source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericTransferrableException
createFrom(java.lang.Throwable source)
java.lang.String
getOriginalClassname()
The original classname of the exception type.boolean
originalTypeOverridesToString()
Whether or not the original type overrode Throwable.toString()java.lang.String
toString()
-
-
-
Method Detail
-
createFrom
public static GenericTransferrableException createFrom(java.lang.Throwable source)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
getOriginalClassname
public java.lang.String getOriginalClassname()
Description copied from interface:IExceptionFacade
The original classname of the exception type.- Specified by:
getOriginalClassname
in interfaceIExceptionFacade
-
originalTypeOverridesToString
public boolean originalTypeOverridesToString()
Description copied from interface:IExceptionFacade
Whether or not the original type overrode Throwable.toString()- Specified by:
originalTypeOverridesToString
in interfaceIExceptionFacade
-
-