C# Class Org.IdentityConnectors.Framework.Impl.Api.Remote.RemoteWrappedException

RemoteWrappedException wraps every exception which are received from Remote Connector Server.

This Exception is not allowed to use in Connectors!!!

This type of exception is not allowed to be serialise because this exception represents any after deserialization. This code example show how to get the remote stack trace and how to use the same catches to handle the exceptions regardless its origin.

  String stackTrace = null; try { try { facade.GetObject(ObjectClass.ACCOUNT, uid, null); } catch (RemoteWrappedException e) { stackTrace = e.StackTrace; } } catch (Throwable t) { }  
Since 1.4
Inheritance: Org.IdentityConnectors.Framework.Common.Exceptions.ConnectorException
Show file Open project: Tirasa/ConnId Class Usage Examples

Public Methods

Method Description
Is ( Type expected ) : bool

Checks if the exception is the expected class.

ReadStackTrace ( ) : string
RemoteWrappedException ( string throwableClass, string message, RemoteWrappedException cause, string stackTrace ) : System
Wrap ( Exception ex ) : RemoteWrappedException

Wraps the Throwable into a RemoteWrappedException instance.

convert ( Exception throwable ) : object>.Dictionary

Converts the throwable object to a new Map object that representing itself.

Private Methods

Method Description
RemoteWrappedException ( object>.IDictionary exception ) : System
buildCause ( Exception throwable ) : object>.IDictionary

Method Details

Is() public method

Checks if the exception is the expected class.
public Is ( Type expected ) : bool
expected System.Type /// the expected throwable class.
return bool

ReadStackTrace() public method

public ReadStackTrace ( ) : string
return string

RemoteWrappedException() public method

public RemoteWrappedException ( string throwableClass, string message, RemoteWrappedException cause, string stackTrace ) : System
throwableClass string
message string
cause RemoteWrappedException
stackTrace string
return System

Wrap() public static method

Wraps the Throwable into a RemoteWrappedException instance.
public static Wrap ( Exception ex ) : RemoteWrappedException
ex System.Exception /// Exception to wrap or cast and return.
return RemoteWrappedException

convert() public static method

Converts the throwable object to a new Map object that representing itself.
public static convert ( Exception throwable ) : object>.Dictionary
throwable System.Exception /// the {@code Throwable} to be converted
return object>.Dictionary