2 * Copyright (c) 2014, 2015 Cable Television Laboratories, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.pcmm.utils;
11 import org.pcmm.gates.IPCMMError;
14 * Defines the Exception that could be thrown by the API.
17 public class PCMMException extends Exception {
19 public PCMMException(IPCMMError error) {
20 this(error.getDescription(), error.getErrorCode().getCode());
23 public PCMMException(String message, int code) {
24 super("error code [" + code + "]" + message);