Define an exception class called DiskDriveNotReady.

The class should have a constructor with no
parameters. If an exception is thrown with this zero-argument constructor, getMessage should
return “Disk Drive Not Ready!” The class should also have a constructor with a single parameter of
type String. If an exception is thrown with this constructor, then getMessage returns the value that
was used as an argument to the constructor.


```
public class DiskDriveNotReadyException extends Exception
{
public DiskDriveNotReadyException()
{
super("Disk Drive Not Ready!");
}

public DiskDriveNotReadyException(String message)
{
super(message);
}
}

```

Computer Science & Information Technology

You might also like to view...

Another method to write text to the Web page is the ____ method.

A. document.writeln() B. document.writeline() C. document.insrtln() D. document.insrtline()

Computer Science & Information Technology

When you are navigating in Datasheet view, pressing Shift+Tab ____.

A. moves to the next field in the current record B. moves to the first field in the current record C. moves to the previous field in the current record D. moves to the last field in the last record

Computer Science & Information Technology

GUI stands for ______ user interface.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which search matches the events containing the terms "error" and "fail"?

A. index=security Error Fail B. index=security error OR fail C. index=security "error failure" D. index=security NOT error NOT fail

Computer Science & Information Technology