Example usage for java.lang UnsupportedOperationException UnsupportedOperationException

List of usage examples for java.lang UnsupportedOperationException UnsupportedOperationException

Introduction

In this page you can find the example usage for java.lang UnsupportedOperationException UnsupportedOperationException.

Prototype

public UnsupportedOperationException(Throwable cause) 

Source Link

Document

Constructs a new exception with the specified cause and a detail message of (cause==null ?

Usage

From source file:Main.java

/**
 * Returns the amount of bytes used by a pixel in a specific
 * {@link android.graphics.Bitmap.Config}
 * @param bitmapConfig the {@link android.graphics.Bitmap.Config} for which the size in byte
 * will be returned/*from w ww  .  ja v  a  2 s  .  c  o  m*/
 * @return
 */
public static int getPixelSizeForBitmapConfig(Bitmap.Config bitmapConfig) {

    switch (bitmapConfig) {
    case ARGB_8888:
        return ARGB_8888_BYTES_PER_PIXEL;
    case ALPHA_8:
        return ALPHA_8_BYTES_PER_PIXEL;
    case ARGB_4444:
        return ARGB_4444_BYTES_PER_PIXEL;
    case RGB_565:
        return RGB_565_BYTES_PER_PIXEL;
    }
    throw new UnsupportedOperationException("The provided Bitmap.Config is not supported");
}

From source file:com.yahoo.elide.utils.coerce.converters.EpochToDateConverter.java

private static <T> T longToDate(Class<T> cls, Long epoch) throws ReflectiveOperationException {
    if (ClassUtils.isAssignable(cls, java.sql.Date.class)) {
        return (T) new java.sql.Date(epoch);
    } else if (ClassUtils.isAssignable(cls, Timestamp.class)) {
        return (T) new Timestamp(epoch);
    } else if (ClassUtils.isAssignable(cls, Time.class)) {
        return (T) new Time(epoch);
    } else if (ClassUtils.isAssignable(cls, Date.class)) {
        return (T) new Date(epoch);
    } else {/*from   w  w w  .  j  a  v  a2 s.  co  m*/
        throw new UnsupportedOperationException("Cannot convert to " + cls.getSimpleName());
    }
}

From source file:com.karki.spring.dao.impl.EnquiryDaoImpl.java

@Override
public int update(Enquiry enquiry) throws ClassNotFoundException, SQLException {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

From source file:com.bizintelapps.bugtracker.service.validator.UsersValidator.java

public void validate(UsersDto usersDto) {
    throw new UnsupportedOperationException("Not yet implemented");
}

From source file:edu.xjtu.qxcamerabridge.AbstractDeviceServiceDelegator.java

@Override
public boolean setShootMode(ShootMode shootMode) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

From source file:gr.teicm.pm.smartfilemanager.corelibrary.entity.logic.drives.UnixDriveProperties.java

@Override
public Date getLastModified() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

From source file:com.karki.spring.dao.impl.CustomerDaoImpl.java

@Override
public int update(Customer customer) throws ClassNotFoundException, SQLException {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

From source file:fr.esecure.banking.impl.IEsecureDaoRoleImpl.java

public <S extends Role> Iterable<S> save(Iterable<S> itrbl) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

From source file:com.karki.spring.controller.FacilitiesController.java

@RequestMapping("deleteFacilities")
public ModelAndView delete(ModelMap mv) throws SQLException, ClassNotFoundException {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

From source file:com.mycompany.secondAttemptCrud.CarBMWCrudServiceImpl.java

@Transactional(propagation = Propagation.MANDATORY)
public carBMW persist(carBMW entity) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}