/**
    Class: O.ValidationError

    Represents an error in an attribute value of a record.

    Parameters:
        type        - {Number} The error code.
        explanation - {String} A description of the error (normally used to
                      present to the user).
*/
const ValidationError = function ( type, explanation ) {
    this.type = type;
    this.explanation = explanation;
};

ValidationError.REQUIRED = 1;
ValidationError.TOO_SHORT = 2;
ValidationError.TOO_LONG = 4;
ValidationError.INVALID_CHAR = 8;
ValidationError.FIRST_CUSTOM_ERROR = 16;

export default ValidationError;

@@ -278,12 +278,12 @@
 */%0Ac
-onst
+lass
  Val
@@ -299,18 +299,25 @@
 ror 
-= function
+%7B%0A    constructor
  ( t
@@ -337,16 +337,20 @@
 ion ) %7B%0A
+    
     this
@@ -363,24 +363,28 @@
 = type;%0A    
+  
+  
 this.explana
@@ -407,10 +407,15 @@
 on;%0A
+    %7D%0A
 %7D
-;
 %0A%0AVa

Use class syntax on ValidationError