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 protectedGenericTransferrableException(java.lang.Throwable source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericTransferrableExceptioncreateFrom(java.lang.Throwable source)java.lang.StringgetOriginalClassname()The original classname of the exception type.booleanoriginalTypeOverridesToString()Whether or not the original type overrode Throwable.toString()java.lang.StringtoString()
-
-
-
Method Detail
-
createFrom
public static GenericTransferrableException createFrom(java.lang.Throwable source)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
getOriginalClassname
public java.lang.String getOriginalClassname()
Description copied from interface:IExceptionFacadeThe original classname of the exception type.- Specified by:
getOriginalClassnamein interfaceIExceptionFacade
-
originalTypeOverridesToString
public boolean originalTypeOverridesToString()
Description copied from interface:IExceptionFacadeWhether or not the original type overrode Throwable.toString()- Specified by:
originalTypeOverridesToStringin interfaceIExceptionFacade
-
-