Examples of ConversionFailedException


Examples of com.izylab.izyutils.convertermanager.ConversionFailedException

  @SuppressWarnings("static-method")
  public Long toLong(@SuppressWarnings("unused") MyObjectClass obj) {
    try {
      return Long.valueOf(null);
    } catch (NumberFormatException ex) {
      throw new ConversionFailedException("Long conversion failed", ex); //$NON-NLS-1$
    }
  }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.ConvertNode.ConversionFailedException

    }

    @Fallback
    @SlowPath
    public double doOther(Object operand) {
        throw new ConversionFailedException(operand.getClass().getName());
    }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.ConvertNode.ConversionFailedException

        throw fail(operand.getClass().getName());
    }

    @SlowPath
    private static ConversionFailedException fail(String className) {
        throw new ConversionFailedException(className);
    }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.ConvertNode.ConversionFailedException

    }

    @Fallback
    @SlowPath
    public int doOther(Object operand) {
        throw new ConversionFailedException(operand.getClass().getName());
    }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.ConvertNode.ConversionFailedException

    }

    @Fallback
    @SlowPath
    public int doOther(Object operand) {
        throw new ConversionFailedException(operand.getClass().getName());
    }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.ConvertNode.ConversionFailedException

    }

    @Fallback
    @SlowPath
    public int doOther(Object operand) {
        throw new ConversionFailedException(operand.getClass().getName());
    }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.ConvertNode.ConversionFailedException

    }

    @Fallback
    @SlowPath
    public int doOther(Object operand) {
        throw new ConversionFailedException(operand.getClass().getName());
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.convert.ConversionFailedException

            conversionErrorHandler.displayError(this, e);
            throw e;
        } catch (Exception e) {
            // conversion failed
            conversionErrorHandler.displayError(this, e);
            throw new ConversionFailedException(e.getMessage(), e);
        }
        return canonicalValue;
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.convert.ConversionFailedException

            conversionErrorHandler.displayError(this, e);
            throw e;
        } catch (Exception e) {
            // conversion failed
            conversionErrorHandler.displayError(this, e);
            throw new ConversionFailedException(e.getMessage(), e);
        }
        return canonicalValue;
    }
View Full Code Here

Examples of org.springframework.core.convert.ConversionFailedException

    Object convertedValue = newValue;

    // Custom editor for this type?
    PropertyEditor editor = this.propertyEditorRegistry.findCustomEditor(requiredType, propertyName);

    ConversionFailedException firstAttemptEx = null;

    // No custom editor but custom ConversionService specified?
    ConversionService conversionService = this.propertyEditorRegistry.getConversionService();
    if (editor == null && conversionService != null && convertedValue != null && typeDescriptor != null) {
      TypeDescriptor sourceTypeDesc = TypeDescriptor.forObject(newValue);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.