package com.kaltura.playersdk.types;


public class KPError {

    private String errorMsg;
    private int errorCode;
    private Exception exception;

    public KPError(String errorMsg) {
        this.errorMsg  = errorMsg;
        exception = null;
        errorCode = -1;
    }

    public KPError(String errorMsg, int errorCode, Exception exception) {
        this.errorMsg  = errorMsg;
        this.errorCode = errorCode;
        this.exception = exception;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }
}

///**
// * Created by nissimpardo on 10/03/16.
// */
//public enum KPError {
//    UNKNOWN("unknown"),
//    SslError("loaded"),
//    READY("canplay"),
//    PLAYING("play"),
//    PAUSED("pause"),
//    SEEKED("seeked"),
//    SEEKING("seeking"),
//    ENDED("ended");
//
//
//    private String stringValue;
//    KPError(String toString) {
//        stringValue = toString;
//    }
//
//    public static KPError error(String description) {
//        switch (description) {
//            case "loaded":
//                return SslError;
//            case "canplay":
//                return READY;
//            case "play":
//                return PLAYING;
//            case "pause":
//                return PAUSED;
//            case "seeked":
//                return SEEKED;
//            case "seeking":
//                return SEEKING;
//            case "ended":
//                return ENDED;
//        }
//        return UNKNOWN;
//    }
//
//    @Override
//    public String toString() {
//        return stringValue;
//    }
//}

@@ -943,1057 +943,4 @@
 %7D%0A%7D%0A
-%0A///**%0A// * Created by nissimpardo on 10/03/16.%0A// */%0A//public enum KPError %7B%0A//    UNKNOWN(%22unknown%22),%0A//    SslError(%22loaded%22),%0A//    READY(%22canplay%22),%0A//    PLAYING(%22play%22),%0A//    PAUSED(%22pause%22),%0A//    SEEKED(%22seeked%22),%0A//    SEEKING(%22seeking%22),%0A//    ENDED(%22ended%22);%0A//%0A//%0A//    private String stringValue;%0A//    KPError(String toString) %7B%0A//        stringValue = toString;%0A//    %7D%0A//%0A//    public static KPError error(String description) %7B%0A//        switch (description) %7B%0A//            case %22loaded%22:%0A//                return SslError;%0A//            case %22canplay%22:%0A//                return READY;%0A//            case %22play%22:%0A//                return PLAYING;%0A//            case %22pause%22:%0A//                return PAUSED;%0A//            case %22seeked%22:%0A//                return SEEKED;%0A//            case %22seeking%22:%0A//                return SEEKING;%0A//            case %22ended%22:%0A//                return ENDED;%0A//        %7D%0A//        return UNKNOWN;%0A//    %7D%0A//%0A//    @Override%0A//    public String toString() %7B%0A//        return stringValue;%0A//    %7D%0A//%7D%0A

remove commented code