---
title: "Ice.Warn.*"
url: https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Ice.Warn.\*

Parts of this page are for some programming languages only, and name them. For one language's text alone, see [C++](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/csharp.md), [Java](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/java.md), [JavaScript](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/js.md), [MATLAB](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/matlab.md), [PHP](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/php.md), [Python](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/python.md), [Ruby](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/ruby.md), and [Swift](https://docs.zeroc.com/ice/3.8/property-reference/ice-warn-properties/swift.md).

> **C++, C#, and Java**
>
> ## Ice.Warn.AMICallback
>
> `Ice.Warn.AMICallback=num`
>
> If `num` is set to a value larger than `0`, the Ice runtime logs a warning when an AMI callback throws an exception. The default value is `1`.

> **MATLAB**
>
> > **Note**
> >
> > MATLAB returns asynchronous results through futures rather than application callbacks, so Ice.Warn.AMICallback does not apply to MATLAB application code.

> **PHP**
>
> > **Note**
> >
> > PHP exposes synchronous invocations, so Ice.Warn.AMICallback does not apply to PHP application code.

> **Python**
>
> > **Note**
> >
> > Python logs exceptions from future completion callbacks through the Ice.Future Python logger. Ice.Warn.AMICallback does not control these messages.

> **Ruby**
>
> > **Note**
> >
> > Ruby exposes synchronous invocations, so Ice.Warn.AMICallback does not apply to Ruby application code.

> **Swift**
>
> > **Note**
> >
> > Swift asynchronous invocations return results through async/await, and sent callbacks do not throw. Ice.Warn.AMICallback does not control Swift errors.

## Ice.Warn.Connections

`Ice.Warn.Connections=num`

A positive value enables warnings when an error closes an established connection, such as a lost connection. The default value is `0`.

> **C++, C#, Java, Python, Ruby, PHP, MATLAB, and Swift**
>
> This property also enables warnings for errors while accepting connections and exceptions while processing datagrams. Warnings about oversized datagrams are controlled separately by [Ice.Warn.Datagrams](#ice.warn.datagrams).

> **C++, C#, Java, MATLAB, PHP, Python, Ruby, and Swift**
>
> ## Ice.Warn.Datagrams
>
> `Ice.Warn.Datagrams=num`
>
> If `num` is set to a value larger than `0`, a server logs a warning message if it receives a datagram that exceeds the server's receive buffer size. (Note that this condition is not detected by all UDP implementations — some implementations silently drop received datagrams that are too large.) The default value is `0`.

## Ice.Warn.Dispatch

`Ice.Warn.Dispatch=num`

When [Ice.Trace.Dispatch](https://docs.zeroc.com/ice/3.8/property-reference/ice-trace-properties.md) is `0`, this property controls warnings from the logger middleware. The default value is `1`.

| Value | Description |
| --- | --- |
| `0` | No warnings from the logger middleware. |
| `1` | Warn when a dispatch fails with `UnknownException`, `UnknownLocalException`, or `UnknownUserException`, or with any exception that is neither a user exception nor a `DispatchException`. |
| `2` | Like `1`, plus all other instances of `DispatchException`, such as `ObjectNotExistException`, `FacetNotExistException`, and `OperationNotExistException`. |

## Ice.Warn.Endpoints

`Ice.Warn.Endpoints=num`

If `num` is greater than `0`, Ice logs a warning when it parses a stringified proxy that contains both endpoints with known transports and endpoints with unknown transports. Ice ignores the unknown endpoints and uses the recognized ones. The default value is `1`.

> **Java, MATLAB, and Swift**
>
> ## Ice.Warn.SliceLoader
>
> `Ice.Warn.SliceLoader=num`
>
> When [Ice.SliceLoader.NotFoundCacheSize](https://docs.zeroc.com/ice/3.8/property-reference/ice-properties.md) is set to a value larger than `0`, the communicator installs a “not found” cache to cache failed Slice loader resolutions. And when this cache is full, additional failed Slice loader resolutions are not cached.
>
> When `num` is set to a value larger than `0`, the communicator logs a warning for the first failed resolution that is not cached because the cache is full.
>
> The default value is `1`.

## Ice.Warn.UnusedProperties

`Ice.Warn.UnusedProperties=num`

If `num` is set to a value larger than `0`, the Ice runtime logs a warning during communicator destruction if some properties were set but not read. This warning is useful for detecting mis-spelled properties, like if you wrote `Filesystem.MaxFilSize` instead of `FileSystem.MaxFileSize`. The default value is `0`.
