Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A JavaScript Shell

, 18 Nov 2010
Bases to create your own JavaScript shell for your application
binaries.zip
binaries
Documentation.chm
Scaredfinger.JSShell.dll
samples.zip
samples
LocalShell
Properties
SampleShell
Properties
Scaredfinger.JSShell
Properties
ShellServer
Properties
source.zip
source
Scaredfinger.JSShell
Properties
using System;
using System.Runtime.Serialization;

namespace Scaredfinger.JSShell
{
  [Serializable]
  public class ShellClosedException : InvalidOperationException
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public ShellClosedException()
    {
    }

    public ShellClosedException(string message) : base(message)
    {
    }

    public ShellClosedException(string message, Exception inner) : base(message, inner)
    {
    }

    protected ShellClosedException(
      SerializationInfo info,
      StreamingContext context) : base(info, context)
    {
    }
  }

  [Serializable]
  public class ShellAlreadyRunningException : InvalidOperationException
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public ShellAlreadyRunningException()
    {
    }

    public ShellAlreadyRunningException(string message) : base(message)
    {
    }

    public ShellAlreadyRunningException(string message, Exception inner) : base(message, inner)
    {
    }

    protected ShellAlreadyRunningException(
      SerializationInfo info,
      StreamingContext context) : base(info, context)
    {
    }
  }

  [Serializable]
  public class ShellNotRunningException : InvalidOperationException
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public ShellNotRunningException()
    {
    }

    public ShellNotRunningException(string message) : base(message)
    {
    }

    public ShellNotRunningException(string message, Exception inner) : base(message, inner)
    {
    }

    protected ShellNotRunningException(
      SerializationInfo info,
      StreamingContext context) : base(info, context)
    {
    }
  }

  [Serializable]
  public class ImportFormatException : Exception
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public ImportFormatException()
    {
    }

    public ImportFormatException(string message) : base(message)
    {
    }

    public ImportFormatException(string message, Exception inner) : base(message, inner)
    {
    }

    protected ImportFormatException(
      SerializationInfo info,
      StreamingContext context) : base(info, context)
    {
    }
  }

  [Serializable]
  public class BadHandlerException : Exception
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public BadHandlerException()
    {
    }

    public BadHandlerException(string message) : base(message)
    {
    }

    public BadHandlerException(string message, Exception inner) : base(message, inner)
    {
    }

    protected BadHandlerException(
      SerializationInfo info,
      StreamingContext context) : base(info, context)
    {
    }
  }

  [Serializable]
  public class DuplicatedGlobalObjectException : Exception
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public DuplicatedGlobalObjectException()
    {
    }

    public DuplicatedGlobalObjectException(string message) : base(message)
    {
    }

    public DuplicatedGlobalObjectException(string message, Exception inner) : base(message, inner)
    {
    }

    protected DuplicatedGlobalObjectException(
      SerializationInfo info,
      StreamingContext context) : base(info, context)
    {
    }
  }

  [Serializable]
  public class CriticalException : Exception
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public CriticalException()
    {
    }

    public CriticalException(string message) : base(message)
    {
    }

    public CriticalException(string message, Exception inner) : base(message, inner)
    {
    }

    protected CriticalException(
      SerializationInfo info,
      StreamingContext context) : base(info, context)
    {
    }
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Erich Ledesma
Software Developer SunHotels
Spain Spain
I Received a Bachelor's Degree in Computer Science at the Mathematics and Computer Science Faculty, University of Havana, Cuba.
 
Programming Languages I use:
C#, C++, Javascript, Delphi, Java, PHP, and others (less frequently).

| Advertise | Privacy | Mobile
Web01 | 2.8.140821.2 | Last Updated 18 Nov 2010
Article Copyright 2010 by Erich Ledesma
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid