Josh
Native console access wrapper for Java

com.yifanlu.Josh
Class OSNotSupportedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.yifanlu.Josh.OSNotSupportedException
All Implemented Interfaces:
java.io.Serializable

public class OSNotSupportedException
extends java.lang.RuntimeException

This exception is thrown if a method calls a native function in Windows that isn't supported by the current version.

Since:
1.0
Version:
1.3, 05/29/10
Author:
Yifan Lu
See Also:
Serialized Form

Field Summary
static int WINDOWS_2000
          OS Versions
static int WINDOWS_VISTA
          OS Versions
static int WINDOWS_XP
          OS Versions
 
Constructor Summary
OSNotSupportedException(int requiredVersion)
          Creates a new exception with the required OS version.
OSNotSupportedException(java.lang.String requiredVersion)
          Creates a new exception with the required OS version as a String (JNI likes this).
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WINDOWS_2000

public static final int WINDOWS_2000
OS Versions

See Also:
Constant Field Values

WINDOWS_XP

public static final int WINDOWS_XP
OS Versions

See Also:
Constant Field Values

WINDOWS_VISTA

public static final int WINDOWS_VISTA
OS Versions

See Also:
Constant Field Values
Constructor Detail

OSNotSupportedException

public OSNotSupportedException(java.lang.String requiredVersion)
Creates a new exception with the required OS version as a String (JNI likes this).

Parameters:
requiredVersion - The OS Version that the method requires.

OSNotSupportedException

public OSNotSupportedException(int requiredVersion)
Creates a new exception with the required OS version.

Parameters:
requiredVersion - An int (from one of the constant values in this class) that defines what the minimum OS version required is.

Copyright © 2010 Yifan Lu