/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.spi.type;

public class TimeZoneNotSupportedException
        extends RuntimeException
{
    private final String zoneId;

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

    public String getZoneId()
    {
        return zoneId;
    }
}

@@ -594,16 +594,137 @@
 .type;%0A%0A
+import com.facebook.presto.spi.PrestoException;%0A%0Aimport static com.facebook.presto.spi.StandardErrorCode.NOT_SUPPORTED;%0A%0A
 public c
@@ -778,15 +778,14 @@
 nds 
-Runtime
+Presto
 Exce
@@ -906,36 +906,33 @@
 per(
-%22Time zone %22 + zoneId + %22 is
+NOT_SUPPORTED, %22Time zone
  not
@@ -941,17 +941,28 @@
 upported
-%22
+: %22 + zoneId
 );%0A     

Make TimeZoneNotSupportedException extend PrestoException