/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IExceptionType exceptions__SignatureCasted = item.As <IExceptionType>(); if ((exceptions__SignatureCasted != null)) { this._parent.Exceptions__Signature.Add(exceptions__SignatureCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { IExceptionType exceptionTypeItem = item.As <IExceptionType>(); if (((exceptionTypeItem != null) && this._parent.Exceptions__Signature.Remove(exceptionTypeItem))) { return(true); } return(false); }
private PodException(IExceptionType exception) : base(exception.Message) { Code = exception.Code; OriginalResult = exception.OriginalResult; }
public static PodException BuildException(IExceptionType exception) { return(new PodException(exception)); }
public ApiExceptionFilter(IExceptionType exceptionType) { _exceptionType = exceptionType; }