C# 클래스 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
상속: Org.IdentityConnectors.Framework.Common.Exceptions.ConnectorException
파일 보기 프로젝트 열기: Tirasa/ConnId 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
RemoteWrappedException ( object>.IDictionary exception ) : System
buildCause ( Exception throwable ) : object>.IDictionary

메소드 상세

Is() 공개 메소드

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

ReadStackTrace() 공개 메소드

public ReadStackTrace ( ) : string
리턴 string

RemoteWrappedException() 공개 메소드

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

Wrap() 공개 정적인 메소드

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

convert() 공개 정적인 메소드

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
리턴 object>.Dictionary