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
Afficher le fichier Open project: Tirasa/ConnId Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
RemoteWrappedException ( object>.IDictionary exception ) : System
buildCause ( Exception throwable ) : object>.IDictionary

Method Details

Is() public méthode

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

ReadStackTrace() public méthode

public ReadStackTrace ( ) : string
Résultat string

RemoteWrappedException() public méthode

public RemoteWrappedException ( string throwableClass, string message, RemoteWrappedException cause, string stackTrace ) : System
throwableClass string
message string
cause RemoteWrappedException
stackTrace string
Résultat System

Wrap() public static méthode

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

convert() public static méthode

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
Résultat object>.Dictionary