/* * (c) 2015 Cable Television Laboratories, Inc. All rights reserved. */ package org.pcmm.utils; import org.pcmm.gates.IPCMMError; /** * Defines the Exception that could be thrown by the API. * */ public class PCMMException extends Exception { public PCMMException(IPCMMError error) { this(error.getDescription(), error.getErrorCode().getCode()); } public PCMMException(String message, int code) { super("error code [" + code + "]" + message); } }