ServiceStack.CompressionTypes.AssertIsValid C# (CSharp) Method

AssertIsValid() public static method

public static AssertIsValid ( string compressionType ) : void
compressionType string
return void
        public static void AssertIsValid(string compressionType)
        {
            if (!IsValid(compressionType))
            {
                throw new NotSupportedException(compressionType
                    + " is not a supported compression type. Valid types: gzip, deflate.");
            }
        }