"Fossies" - the Fresh Open Source Software Archive

Member "selenium-selenium-4.8.1/dotnet/src/webdriverbackedselenium/SeleniumException.cs" (17 Feb 2023, 1512 Bytes) of package /linux/www/selenium-selenium-4.8.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "SeleniumException.cs" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright 2015 Software Freedom Conservancy.
    3  *
    4  *  Licensed under the Apache License, Version 2.0 (the "License");
    5  *  you may not use this file except in compliance with the License.
    6  *  You may obtain a copy of the License at
    7  *
    8  *      http://www.apache.org/licenses/LICENSE-2.0
    9  *
   10  *  Unless required by applicable law or agreed to in writing, software
   11  *  distributed under the License is distributed on an "AS IS" BASIS,
   12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13  *  See the License for the specific language governing permissions and
   14  *  limitations under the License.
   15  *
   16  */
   17 
   18 using System;
   19 
   20 namespace Selenium
   21 {
   22     /// <summary>
   23     /// Thrown when a Selenium command fails.
   24     /// </summary>
   25     public class SeleniumException : Exception
   26     {
   27         /// <summary>
   28         /// Creates a simple exception
   29         /// </summary>
   30         public SeleniumException()
   31         {
   32             
   33         }
   34 
   35         /// <summary>
   36         /// Creates an exception with the specified message
   37         /// </summary>
   38         /// <param name="message">the message to add to the exception</param>
   39         public SeleniumException(string message) : base(message)
   40         {
   41         }
   42 
   43         /// <summary>
   44         /// Creates an exception with the specified message and inner exception
   45         /// </summary>
   46         /// <param name="message">the message to add to the exception</param>
   47         /// <param name="innerException">the inner exception wrapped by this exception</param>
   48         public SeleniumException(string message, Exception innerException) : base(message, innerException)
   49         {
   50         }
   51     }
   52 }