-
- private static ErrorType toRpcErrorType(final RestconfError.ErrorType errorType) {
- switch (errorType) {
- case TRANSPORT: {
- return ErrorType.TRANSPORT;
- }
- case RPC: {
- return ErrorType.RPC;
- }
- case PROTOCOL: {
- return ErrorType.PROTOCOL;
- }
- default: {
- return ErrorType.APPLICATION;
- }
- }
- }