Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/libsdl/SDLLibraryNotAvailableException.java


1   
2   
3   package org.libsdl;
4   
5   import org.libsdl.SDLException;
6   
7   /**
8    * The <code>SDLLibraryNotAvailableException</code> is an exception 
9    * type that is thrown when an object is trying to be created, but 
10   * the functionality to create that object is not available.  For
11   * example, if a <code>TTFFont</code> object is instantiated, this
12   * exception is thrown when the SDL_ttf library is not installed.
13   *
14   * @author  Eric Wittmann
15   * @version $revision$
16   */
17  public class SDLLibraryNotAvailableException extends SDLException
18  {
19      /**
20       * Constructs a new <code>SDLLibraryNotAvailableException</code> with an 
21       * error message.  Typically, the error message will include the name of
22       * the library that is not available.
23       * @param  str  An error message.
24       */
25      public SDLLibraryNotAvailableException(String str) {
26          super("Library not available: " + str);
27      }
28  }