Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

FlickrApiException.cs

using System;

namespace FlickrNet
{
      /// <summary>
      /// Exception thrown when the Flickr API returned a specifi error code.
      /// </summary>
00008       public class FlickrApiException : FlickrException
      {
            private int code;
            private string msg = "";

            internal FlickrApiException(ResponseError error)
            {
                  code = error.Code;
                  msg = error.Message;
            }

            /// <summary>
            /// Get the code of the Flickr error.
            /// </summary>
            public int Code
00023             {
                  get { return code; }
            }

            /// <summary>
            /// Gets the verbose message returned by Flickr.
            /// </summary>
            public string Verbose
00031             {
                  get { return msg; }
            }

            /// <summary>
            /// Overrides the message to return custom error message.
            /// </summary>
            public override string Message
00039             {
                  get
                  {
                        return msg + " (" + code + ")";
                  }
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index