You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
391 B
Java
17 lines
391 B
Java
Pie exception
|
|
|
|
|
|
|
|
package com.ack.learning.exceptions;
|
|
|
|
// define your own exception by extending java.lang.Exception
|
|
|
|
public class PieException extends Exception {
|
|
// let this exception accept a user message that can be
|
|
// accessed through calling getMessage() that is defined
|
|
// within its parent class
|
|
public PieException( String msg ) {
|
|
super( msg );
|
|
}
|
|
}
|