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

Quick Search    Search Deep

Source code: jm/music/tools/NoteListException.java


1   /**
2    * NoteListException.java 0.1.6 8th November 2000
3    *
4    * Copyright (C) 2000 Adam Kirby
5    *
6    * <This Java Class is part of the jMusic API version 1.4, February 2003.>
7    *
8    * This program is free software; you can redistribute it and/or
9    * modify it under the terms of the GNU General Public License
10   * as published by the Free Software Foundation; either version 2
11   * of the License, or (at your option) any later version.
12   *
13   * This program is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
16   *
17   * See the GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU General Public License
20   * along with this program; if not, write to the Free Software
21   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22   */
23  
24  package jm.music.tools;
25  
26  /**
27   * Thrown by a method when a set of {@link jm.music.data.Note Notes} does not fit
28   * its criteria.  The set of Notes might be a Vector stored within a {@link
29   * jm.music.data.Phrase Phrase} or a array of Notes.
30   *
31   * <p> The actual problem with the Notes will be dependent on the function of
32   * the method throwing this error.  For instance, a method might require that
33   * the notes must contain at least one non-rest.  Another method might require
34   * only that it has a least one Note, regardless of whether its a rest or not.
35   *
36   * <p> See the particular method for full details.
37   *
38   * @author  Adam Kirby
39   * @version 1.0,Sun Feb 25 18:43:34  2001
40   *
41   * @since   jMusic November 2000 Release
42   */
43  public class NoteListException extends Exception {
44      /**
45       * Constructs a <code>NoteListException</code> with no 
46       * detail message. 
47       */
48      public NoteListException() {
49          super();
50      }
51  
52      /**
53       * Constructs a <code>NoteListException</code> class 
54       * with the specified detail message. 
55       *
56       * @param s the detail message.
57       */
58      public NoteListException(String s) {
59          super(s);
60      }
61  }