2
* This file is part of the Twitterizer library <http://code.google.com/p/twitterizer/>
4
* Copyright (c) 2008, Patrick "Ricky" Smith <ricky@digitally-born.com>
7
* Redistribution and use in source and binary forms, with or without modification, are
8
* permitted provided that the following conditions are met:
10
* - Redistributions of source code must retain the above copyright notice, this list
11
* of conditions and the following disclaimer.
12
* - Redistributions in binary form must reproduce the above copyright notice, this list
13
* of conditions and the following disclaimer in the documentation and/or other
14
* materials provided with the distribution.
15
* - Neither the name of the Twitterizer nor the names of its contributors may be
16
* used to endorse or promote products derived from this software without specific
17
* prior written permission.
19
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
* IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
* POSSIBILITY OF SUCH DAMAGE.
33
namespace Twitterizer.Framework
35
public enum InvalidTwitterParameterReason
38
/// A required parameter was not supplied.
40
MissingRequiredParameter = 0,
43
/// The parameter value was invalid.
48
/// The parameter is not supported for the method invoked.
50
ParameterNotSupported = 2
53
public class InvalidTwitterParameterException : ArgumentException
55
public TwitterParameterNames Parameter { get; set; }
56
public InvalidTwitterParameterReason Reason { get; set; }
58
public InvalidTwitterParameterException(TwitterParameterNames Parameter, InvalidTwitterParameterReason Reason)
60
this.Parameter = Parameter;