April 2015
Beginner to intermediate
494 pages
10h 26m
English
com.packtpub.exception.InvalidTypeException of type Exception as follows:package com.packtpub.exception;
public class InvalidTypeException extends Exception {
public InvalidTypeException(String pDetailMessage) {
super(pDetailMessage);
}
}Repeat the operation for two other exceptions: NotExistingKeyException of type Exception and StoreFullException of type RuntimeException.
Store.java and declare thrown exceptions on getInteger() in class Store (StoreFullException is RuntimeException and does not need declaration):public class Store {
...
public native int getInteger(String pKey)
throws NotExistingKeyException, InvalidTypeException; public native void ...