func ConvertMoodleError(err string) ErrorCode {
	switch err {
	case "invalidtoken":
		return InvalidTokenError
	case "invalidlogin":
		return InvalidLoginError
	case "enablewsdescription":
		return WebServicesError
	}
	return MoodleError
}
// ConvertMoodleError Receives a Moodle Error Code and converts to the
// appropriate ErrorCode
ConvertMoodleError Receives a Moodle Error Code and converts to the
appropriate ErrorCode
// ConvertMoodleError Receives a Moodle Error Code and converts to the // appropriate ErrorCode
func ConvertMoodleError(err string) ErrorCode {
	switch err {
	case "invalidtoken":
		return InvalidTokenError
	case "invalidlogin":
		return InvalidLoginError
	case "enablewsdescription":
		return WebServicesError
	}
	return MoodleError
}
func ConvertMoodleError ( err string ) ErrorCode { switch err { case " " : return InvalidTokenError case " " : return InvalidLoginError case " " : return WebServicesError } return MoodleError }
ConvertMoodleError Receives a Moodle Error Code and converts to the
appropriate ErrorCode
ConvertMoodleError Receives a Moodle Error Code and converts to the appropriate ErrorCode