Add missing license headers to packetcable-driver utils
[packetcable.git] / packetcable-driver / src / main / java / org / pcmm / utils / PCMMException.java
index 01e23e49e1db022cb48ceac1b9f517c8f141f609..d82228aaaad57b46c1eccb9758d554bc5806b5b6 100644 (file)
@@ -1,5 +1,9 @@
-/**
- @header@
+/*
+ * Copyright (c) 2014, 2015 Cable Television Laboratories, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
 package org.pcmm.utils;
@@ -8,12 +12,12 @@ 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());
+               this(error.getDescription(), error.getErrorCode().getCode());
        }
 
        public PCMMException(String message, int code) {