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
Ejemplo n.º 1
0
 public RemoteWrappedException(string throwableClass, string message, RemoteWrappedException cause, string stackTrace)
     : base(message)
 {
     exception = new Dictionary <string, object>(4);
     exception[FIELD_CLASS]   = Assertions.BlankChecked(throwableClass, "throwableClass");
     exception[FIELD_MESSAGE] = message;
     if (null != cause)
     {
         exception[FIELD_CAUSE] = cause.exception;
     }
     if (null != stackTrace)
     {
         exception[FIELD_STACK_TRACE] = stackTrace;
     }
     this.stackTrace = stackTrace;
 }
Ejemplo n.º 2
0
 public RemoteWrappedException(string throwableClass, string message, RemoteWrappedException cause, string stackTrace)
     : base(message)
 {
     exception = new Dictionary<string, object>(4);
     exception[FIELD_CLASS] = Assertions.BlankChecked(throwableClass, "throwableClass");
     exception[FIELD_MESSAGE] = message;
     if (null != cause)
     {
         exception[FIELD_CAUSE] = cause.exception;
     }
     if (null != stackTrace)
     {
         exception[FIELD_STACK_TRACE] = stackTrace;
     }
     this.stackTrace = stackTrace;
 }