2 * (c) 2015 Cable Television Laboratories, Inc. All rights reserved.
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().getCode());
19 public PCMMException(String message, int code) {
20 super("error code [" + code + "]" + message);