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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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