Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / openstack / exceptions / MsoOpenstackException.java
index 1410650..f5b6c7b 100644 (file)
@@ -24,57 +24,54 @@ package org.onap.so.openstack.exceptions;
 /**
  * OpenStack exception.
  */
-public class MsoOpenstackException extends MsoException
-{
-       
-       /**
+public class MsoOpenstackException extends MsoException {
+
+    /**
      * Serialization id.
      */
     private static final long serialVersionUID = 3313636124141766495L;
-    
+
     private int statusCode;
-       private String statusMessage;
-       private String errorDetail;
+    private String statusMessage;
+    private String errorDetail;
+
+    /**
+     * Constructor to create a new MsoOpenstackException instance
+     * 
+     * @param code the error code
+     * @param message the error message
+     * @param detail error details
+     */
+    public MsoOpenstackException(int code, String message, String detail) {
+        // Set the detailed error as the Exception 'message'
+        super(detail);
+        super.category = MsoExceptionCategory.OPENSTACK;
+
+        this.statusCode = code;
+        this.statusMessage = message;
+        this.errorDetail = detail;
+    }
 
-       /**
-        * Constructor to create a new MsoOpenstackException instance
-        * @param code the error code
-        * @param message the error message
-        * @param detail error details
-        */
-       public MsoOpenstackException (int code, String message, String detail) {
-               // Set the detailed error as the Exception 'message'
-               super(detail);
-               super.category = MsoExceptionCategory.OPENSTACK;
-               
-               this.statusCode = code;
-               this.statusMessage = message;
-               this.errorDetail = detail;
-       }
-       
-       /**
-        * Constructor to propagate the caught exception (mostly for stack trace)
+    /**
+     * Constructor to propagate the caught exception (mostly for stack trace)
+     * 
      * @param code the error code
      * @param message the error message
      * @param detail error details
-        * @param e the cause
-        */
-       public MsoOpenstackException (int code, String message, String detail, Exception e) {
-               // Set the detailed error as the Exception 'message'
-               super(detail, e);
-               super.category = MsoExceptionCategory.OPENSTACK;
-               
-               this.statusCode = code;
-               this.statusMessage = message;
-               this.errorDetail = detail;
-       }
+     * @param e the cause
+     */
+    public MsoOpenstackException(int code, String message, String detail, Exception e) {
+        // Set the detailed error as the Exception 'message'
+        super(detail, e);
+        super.category = MsoExceptionCategory.OPENSTACK;
+
+        this.statusCode = code;
+        this.statusMessage = message;
+        this.errorDetail = detail;
+    }
 
-       @Override
-       public String toString() {
-               return statusCode +
-                       " " +
-                       statusMessage +
-                       ": " +
-                       errorDetail;
-       }
+    @Override
+    public String toString() {
+        return statusCode + " " + statusMessage + ": " + errorDetail;
+    }
 }