Skip to content

Commit

Permalink
Make TimeZoneNotSupportedException extend PrestoException
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenxiao authored and electrum committed Feb 11, 2016
1 parent 706a6da commit 29cde74
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
*/
package com.facebook.presto.spi.type;

import com.facebook.presto.spi.PrestoException;

import static com.facebook.presto.spi.StandardErrorCode.NOT_SUPPORTED;

public class TimeZoneNotSupportedException
extends RuntimeException
extends PrestoException
{
private final String zoneId;

public TimeZoneNotSupportedException(String zoneId)
{
super("Time zone " + zoneId + " is not supported");
super(NOT_SUPPORTED, "Time zone not supported: " + zoneId);
this.zoneId = zoneId;
}

Expand Down

0 comments on commit 29cde74

Please sign in to comment.