Class ExceptionThrower
Utility to throw exceptions when a condition is matched.
Inheritance
System.Object
ExceptionThrower
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Util
Assembly: cs.temp.dll.dll
Syntax
public static class ExceptionThrower
Methods
AssertHttp200Code(Int32)
Ensures that the passed-in http status code is a 200 response (200-299), if not, an exception is thrown.
Declaration
public static void AssertHttp200Code(int httpStatusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | httpStatusCode | The status code to check. |
Exceptions
Type | Condition |
---|---|
System.Exception | If the status code is not a 200 response (200-299). |