Beispiel #1
0
            /// <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);
                }
            }
Beispiel #2
0
            /// <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);
            }
Beispiel #3
0
 private PodException(IExceptionType exception) : base(exception.Message)
 {
     Code           = exception.Code;
     OriginalResult = exception.OriginalResult;
 }
Beispiel #4
0
 public static PodException BuildException(IExceptionType exception)
 {
     return(new PodException(exception));
 }
Beispiel #5
0
 public ApiExceptionFilter(IExceptionType exceptionType)
 {
     _exceptionType = exceptionType;
 }