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
상속: Org.IdentityConnectors.Framework.Common.Exceptions.ConnectorException
예제 #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;
 }
예제 #2
0
파일: ApiRemote.cs 프로젝트: Tirasa/ConnId
 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;
 }