5 package org.pcmm.utils;
7 import org.pcmm.gates.IPCMMError;
10 * Defines the Exception that could be thrown by the API.
13 public class PCMMException extends Exception {
15 public PCMMException(IPCMMError error) {
16 this(error.getDescription(), error.getErrorCode());
19 public PCMMException(String message, int code) {
20 super("error code [" + code + "]" + message);